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