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