diff options
Diffstat (limited to 'source/blog/index.md')
-rw-r--r-- | source/blog/index.md | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/source/blog/index.md b/source/blog/index.md new file mode 100644 index 0000000..5a2cf54 --- /dev/null +++ b/source/blog/index.md @@ -0,0 +1,30 @@ +--- +title: "Blog" +date: 2021-02-22 +layout: "default" +--- + +# Blog + +Just a bunch of random ramblings. + +{% assign by_year = site.pages + | where_exp: "page", "page.layout == 'blog'" + | group_by_exp: "page", "page.date | date: '%Y'" + | reverse +%} +{% for year in by_year %} +<p>{{ year.name }}: +<ul> + {% assign in_year = year.items + | sort: "date" + | reverse + %} + {% for post in in_year %} + <li> + <a href="{{ post.url }}">{{ post.title }}</a> + </li> + {% endfor %} +</ul> +</p> +{% endfor %} |