]> Witch of Git - web/blog/blob - years.njk
Add a feed <link> tag in the main template
[web/blog] / years.njk
1 ---
2 layout: "layouts/layout.njk"
3 pagination:
4 data: collections.years
5 size: 1
6 alias: year
7 permalink: /{{ year }}/index.html
8 title: Archive
9 eleventyImport:
10 collections: ["years"]
11 ---
12
13 <h2>{{ year }}</h2>
14
15 <ul class="ls-none">
16 {% for post in collections.years[year] | reverse %}
17 <li>
18 <h2><a class="c-sun" href="{{ post.url }}">{{ post.data.title }}</a></h2>
19 <i class="dim">{{ post.date | date("YYYY-MM-DD") }}</i>
20 {% if post.data.summary %}
21 <p>{{ post.data.summary | markdown | safe }}</p>
22 {% endif %}
23 </li>
24 {% endfor %}
25 </ul>