]> Witch of Git - web/blog/blob - archive.njk
Archive polish work
[web/blog] / archive.njk
1 ---
2 layout: "layouts/layout.njk"
3 ---
4
5 {% for year, group in collections.posts | reverse | groupby("date.getFullYear()") %}
6 <section>
7 <h2><a class="c-sun dec-none" href="/{{ year }}">{{ year }}</a></h2>
8 {% for post in group %}
9 <article class="row">
10 <a class="c-sun" href="{{ post.url }}">{{ post.data.title }}</a>
11 <div class="spacer"></div>
12 <i class="dim">{{ post.date | date('MMM DD') }}</i>
13 </article>
14 {% endfor %}
15 </section>
16 {% endfor %}