]> Witch of Git - web/blog/blob - _includes/layouts/post.njk
The index page shows full short posts, add some h-entry
[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="h-entry">
6 <header>
7 <h2 class="p-name">{{ title }}</h2>
8 {% if summary %}<data class="p-summary" value="{{ summary }}"></data>{% endif %}
9 <data class="u-url" value="{{ page.url }}"></data>
10 <div class="publish-date">
11 {% if published %}
12 <i class="dim">Published <time class="dt-published" datetime="{{ published | toRfc3339 }}">{{ published | date('yyyy-MM-dd') }}
13 {%- if published | hasTime %} at {{ published | date('HH:mm') }}{% endif -%}
14 </time></i>
15 {%- if updated -%}
16 <i class="dim">, Updated <time class="dt-updated" datetime="{{ updated | toRfc3339 }}">{{ updated | date('yyyy-MM-dd') }}
17 {%- if updated | hasTime %} at {{ updated | date('HH:mm') }}{% endif %}
18 {% endif %}
19 </time></i>
20 {% endif %}
21 </div>
22 {# TODO: Add actual author information #}
23 <div class="author-info p-author h-card">
24 <data class="p-name" value="Cassie Jones"></data>
25 <data class="p-nickname" value="porglezomp"></data>
26 <data class="u-url" value="https://www.witchoflight.com/"></data>
27 <data class="u-email" value="mailto:cassie+blog@witchoflight.com"></data>
28 </div>
29 </header>
30 <div class="e-content">
31 {{ content | safe }}
32 </div>
33 </article>