mirror of
https://github.com/helenclx/leilukin-site.git
synced 2025-03-13 08:37:14 +00:00
37 lines
1004 B
Plaintext
37 lines
1004 B
Plaintext
---
|
|
layout: main/base
|
|
metadata:
|
|
type: article
|
|
---
|
|
|
|
<header class="main__header">
|
|
<h1>{{ articleTitle }}</h1>
|
|
<div class="article__info">
|
|
<p>Posted on {{ date | niceDate }} by {{ sitemeta.siteAuthor.name }}
|
|
{% if updated %}
|
|
• Last updated on {{ updated | niceDate }}</p>
|
|
{% endif %}
|
|
{% if categories %}
|
|
<p>Categories:
|
|
{% for cat in categories %}
|
|
<a href="/categories/{{ cat | slugify }}">{{ cat }}</a>{% if not loop.last %}, {% endif %}
|
|
{% endfor %}
|
|
</p>
|
|
{% endif %}
|
|
<p>{{ content | emojiReadTime }}</p>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="content__wrapper">
|
|
{% if toc %}
|
|
{% include "global/toc.njk" %}
|
|
{% endif %}
|
|
|
|
<article class="article">
|
|
{{ content | safe }}
|
|
</article>
|
|
|
|
{% if tags and tags.includes("articles") or tags and tags.includes("posts") %}
|
|
{% include "main/content-nav.njk" %}
|
|
{% endif %}
|
|
</div> |