]> Witch of Git - web/blog/blob - index.njk
Fix the URL on "look at the EXIF data" to be more durable
[web/blog] / index.njk
1 ---
2 layout: "layouts/layout.njk"
3 eleventyImport:
4 collections: ["posts"]
5 ---
6 {% for post in collections.posts | reverse %}
7 <article class="h-entry">
8 <header>
9 <h2><a class="c-sun u-url p-name" href="{{ post.url }}">{{ post.data.title }}</a></h2>
10 {% if post.data.published %}
11 <i class="dim"><time class="dt-published" 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 </header>
16 {% endif %}
17 {% if post.data.summary %}
18 <p class="p-summary">{{ post.data.summary | markdown | safe }}</p>
19 {% elseif post.data.short %}
20 <div class="e-content">
21 {{ post.templateContent | safe }}
22 </div>
23 {% endif %}
24 </article>
25 {% endfor %}