37 lines
1004 B
Plaintext
Raw Normal View History

2024-04-13 17:29:25 +08:00
---
layout: main/base
metadata:
type: article
---
<header class="main__header">
2024-04-13 17:29:25 +08:00
<h1>{{ articleTitle }}</h1>
<div class="article__info">
<p>Posted on {{ date | niceDate }} by {{ sitemeta.siteAuthor.name }}
2024-04-13 17:29:25 +08:00
{% if updated %}
2024-04-18 11:28:04 +08:00
• Last updated on {{ updated | niceDate }}</p>
2024-04-13 17:29:25 +08:00
{% endif %}
2024-04-18 01:39:31 +08:00
{% if categories %}
<p>Categories:
{% for cat in categories %}
<a href="/categories/{{ cat | slugify }}">{{ cat }}</a>{% if not loop.last %}, {% endif %}
{% endfor %}
</p>
{% endif %}
2024-04-13 17:29:25 +08:00
<p>{{ content | emojiReadTime }}</p>
</div>
</header>
2024-04-13 17:29:25 +08:00
<div class="content__wrapper">
{% if toc %}
{% include "global/toc.njk" %}
{% endif %}
2024-04-15 02:20:54 +08:00
<article class="article">
{{ content | safe }}
</article>
2024-04-16 01:39:56 +08:00
2024-04-18 02:08:32 +08:00
{% if tags and tags.includes("articles") or tags and tags.includes("posts") %}
{% include "main/content-nav.njk" %}
2024-04-16 01:39:56 +08:00
{% endif %}
</div>