From 80d0f8237bffab6450e0b37575fe3c0a8acfce6e Mon Sep 17 00:00:00 2001
From: Leilukin
Date: Thu, 18 Apr 2024 01:39:31 +0800
Subject: [PATCH] Add categories to article info
---
src/_includes/main/article.njk | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/_includes/main/article.njk b/src/_includes/main/article.njk
index 10ccf61e..0e633b84 100644
--- a/src/_includes/main/article.njk
+++ b/src/_includes/main/article.njk
@@ -11,6 +11,13 @@ metadata:
{% if updated %}
• Updated on {{ updated | niceDate }}
{% endif %}
+ {% if categories %}
+ Categories:
+ {% for cat in categories %}
+ {{ cat }}{% if not loop.last %}, {% endif %}
+ {% endfor %}
+
+ {% endif %}
{{ content | emojiReadTime }}