gil.ink/src/_layouts/entry.njk

54 lines
1.3 KiB
Plaintext
Raw Normal View History

2025-05-16 21:16:21 -04:00
---
layout: base
2025-05-16 21:16:21 -04:00
---
2025-05-17 10:17:44 -04:00
<main class="page--entry box pad">
2025-05-16 21:16:21 -04:00
<header>
<h1>{{ title }}</h1>
<p>
posted <time datetime="{{ page.date }}" title="{{ page.date }}">{{ page.date | formatDateRel }}</time>
2025-05-16 21:16:21 -04:00
{% if author %}
by {{ author }}
2025-05-18 13:17:26 -04:00
{% elif meta.author %}
by {{ meta.author }}
2025-05-16 21:16:21 -04:00
{% endif %}
2025-05-18 13:17:26 -04:00
{% if categories %}
<em>in</em>
{% for cat in categories %}
<a href="/journal/category/{{ cat }}">
<span class="category category--{{ cat }}">
{{ cat }}
</span>
</a>
2025-05-18 13:17:26 -04:00
{% endfor %}
{% endif %}
2025-05-16 21:16:21 -04:00
</p>
</header>
{{ content | safe }}
<aside>
{% if lastmod %}
<p>
<strong>Last modified</strong>
<time datetime=" {{ lastmod | formatDate('yyyy-MM-dd') }} ">{{ lastmod | formatDate("yyyy-MM-dd") }}</time>
2025-05-16 21:16:21 -04:00
</p>
{% endif %}
{% if tags %}
<p>
<strong>Tags</strong>
<ul>
{% for tag in tags %}
<li>{{ tag }}</li>
{% endfor %}
</ul>
</p>
{% endif %}
{% if elsewhere %}
<p>
<strong>Elsewhere</strong>
<ul>
{% if elsewhere.ghost %}<li><a href="{{ elsewhere.ghost }}" rel="noreferrer nofollow noopener external" target="_blank">Ghost</a></li>{% endif %}
</ul>
</p>
{% endif %}
2025-05-16 21:16:21 -04:00
</aside>
2025-05-18 13:17:26 -04:00
</main>