From cbfffe096e9c2c28e6ffb92c6b2f3bd29c5b0263 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Sat, 13 Apr 2024 17:29:25 +0800 Subject: [PATCH] Add article template --- src/_includes/main/article.njk | 55 ++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 src/_includes/main/article.njk diff --git a/src/_includes/main/article.njk b/src/_includes/main/article.njk new file mode 100644 index 00000000..005556f1 --- /dev/null +++ b/src/_includes/main/article.njk @@ -0,0 +1,55 @@ +--- +layout: main/base +metadata: + type: article +eleventyComputed: + title: "{{ articleTitle }} | Articles" +--- + +{% if toc %} + + +{% endif %} + +
+

{{ articleTitle }}

+
+

Posted on {{ date | niceDate }} by {{ sitemeta.siteAuthor.name }}

+ {% if updated %} +

Updated on {{ updated | niceDate }}

+ {% endif %} +

{{ content | emojiReadTime }}

+
+ + {{ content | safe }} +
+ + \ No newline at end of file