Add categories to article info

This commit is contained in:
Helen Chong 2024-04-18 01:39:31 +08:00
parent daae80b3b6
commit ce34c6784c
1 changed files with 7 additions and 0 deletions

View File

@ -11,6 +11,13 @@ metadata:
{% if updated %}
• 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>