]> Witch of Git - web/blog/blob - _includes/layouts/post.njk
Make the atom feed always include an updated element
[web/blog] / _includes / layouts / post.njk
1 ---
2 layout: "layouts/layout.njk"
3 permalink: "/{{ page.date | date('yyyy') }}/{{ page.fileSlug }}/index.html"
4 ---
5 <article class="post h-entry">
6 <header>
7 <h2><a class="u-url p-name" href="{{ page.url }}">{{ title }}</a></h2>
8 {% if summary %}<data class="p-summary" value="{{ summary }}"></data>{% endif %}
9 <div class="info">
10 <span class="author p-author h-card">
11 {# TODO: Add actual author information #}
12 By <a class="p-name u-url" href="https://www.witchoflight.com/">Cassie Jones</a>,
13 <data class="p-nickname" value="porglezomp"></data>
14 <data class="u-email" value="mailto:cassie+blog@witchoflight.com"></data>
15 <img class="avatar square u-photo" src="https://static.witchoflight.com/ds/2024/witch-of-light-smallest.jpg">
16 </span>
17 <span class="published">
18 {% if published %}
19 posted <time class="dt-published" datetime="{{ published | toRfc3339 }}">{{ published | date('yyyy-MM-dd') }}
20 {%- if published | hasTime %} at {{ published | date('HH:mm') }}{% endif -%}
21 </time>
22 {%- if updated -%}
23 <i class="dim">, Updated <time class="dt-updated" datetime="{{ updated | toRfc3339 }}">{{ updated | date('yyyy-MM-dd') }}
24 {%- if updated | hasTime %} at {{ updated | date('HH:mm') }}{% endif %}
25 {% endif %}
26 </time></i>
27 {% endif %}
28 </span>
29 </div>
30 </header>
31 <div class="e-content">
32 {{ content | safe }}
33 </div>
34 </article>