2024-04-13 17:29:25 +08:00
|
|
|
---
|
|
|
|
layout: main/base
|
|
|
|
metadata:
|
|
|
|
type: article
|
|
|
|
---
|
|
|
|
|
2024-04-14 18:08:50 +08:00
|
|
|
<header class="main__header">
|
2024-04-13 17:29:25 +08:00
|
|
|
<h1>{{ articleTitle }}</h1>
|
2024-04-15 11:47:06 +08:00
|
|
|
<div class="article__info">
|
2024-04-14 18:08:50 +08:00
|
|
|
<p>Posted on {{ date | niceDate }} by {{ sitemeta.siteAuthor.name }}
|
2024-04-13 17:29:25 +08:00
|
|
|
{% if updated %}
|
2024-04-14 18:08:50 +08:00
|
|
|
• 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>
|
2024-04-14 18:08:50 +08:00
|
|
|
</header>
|
2024-04-13 17:29:25 +08:00
|
|
|
|
2024-04-15 12:17:43 +08:00
|
|
|
<div class="content__wrapper">
|
2024-04-15 00:13:57 +08:00
|
|
|
{% if toc %}
|
2024-04-16 23:02:16 +08:00
|
|
|
{% include "global/toc.njk" %}
|
2024-04-15 00:13:57 +08:00
|
|
|
{% endif %}
|
2024-04-14 18:08:50 +08:00
|
|
|
|
2024-04-15 02:20:54 +08:00
|
|
|
<article class="article">
|
2024-04-15 00:13:57 +08:00
|
|
|
{{ 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 %}
|
2024-04-15 00:13:57 +08:00
|
|
|
</div>
|