]> Witch of Git - web/blog/blob - years.njk
Bump the syntax highlight plugin version
[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><time datetime="{{ year }}">{{ year }}</time></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 {% if post.data.published %}
20 <i class="dim"><time datetime="{{ post.data.published | toRfc3339 }}">{{ post.data.published | date("yyyy-MM-dd") }}</time></i>
21 {% endif %}
22 {% if post.data.summary %}
23 <p>{{ post.data.summary | markdown | safe }}</p>
24 {% endif %}
25 </li>
26 {% endfor %}
27 </ul>