summaryrefslogtreecommitdiff
path: root/source/blog/index.md
blob: 5a2cf54445552620f265e8c381a32b33709adebf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 %}