summaryrefslogtreecommitdiff
path: root/source/blog/index.md
blob: caf7e02b4fef0d84899df28821df0a3c302bcda5 (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
31
---
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'"
  | sort: "date"
  | 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 | replace: "<br>", " " }}</a>
  </li>
  {% endfor %}
</ul>
</p>
{% endfor %}