]> Witch of Git - web/blog/blob - index.njk
Update date handling and add some h-entry markup
[web/blog] / index.njk
1 ---
2 layout: "layouts/layout.njk"
3 eleventyImport:
4 collections: ["posts"]
5 ---
6 <ul class="ls-none">
7 {% for post in collections.posts | reverse %}
8 <li>
9 <h2><a class="c-sun" href="{{ post.url }}">{{ post.data.title }}</a></h2>
10 {% if post.data.published %}
11 <i class="dim"><time datetime="{{ post.data.published | toRfc3339 }}">
12 {{ post.data.published | date("yyyy-MM-dd") }}
13 {% if post.data.published | hasTime %}at {{ post.data.published | date("HH:mm") }}{% endif %}
14 </time></i>
15 {% endif %}
16 {% if post.data.summary %}
17 <p>{{ post.data.summary | markdown | safe }}</p>
18 {% endif %}
19 </li>
20 {% endfor %}
21 </ul>