From 516dc1ecdb443d93f70b4d590810b133ebac742e Mon Sep 17 00:00:00 2001
From: Helen Chong <119173961+helenclx@users.noreply.github.com>
Date: Fri, 19 Apr 2024 07:50:20 +0800
Subject: [PATCH] Set up global content layout
---
src/_includes/global/content.njk | 65 +++++++++++++++++++++++++++++++
src/_includes/main/content.njk | 66 +-------------------------------
2 files changed, 66 insertions(+), 65 deletions(-)
create mode 100644 src/_includes/global/content.njk
diff --git a/src/_includes/global/content.njk b/src/_includes/global/content.njk
new file mode 100644
index 00000000..63f45e2e
--- /dev/null
+++ b/src/_includes/global/content.njk
@@ -0,0 +1,65 @@
+ Posted on {{ date | niceDate }} by {{ sitemeta.siteAuthor.name }}
+ {% if updated %}
+ • Last updated on {{ updated | niceDate }} Categories:
+ {% for cat in categories %}
+ {{ cat }}{% if not loop.last %}, {% endif %}
+ {% endfor %}
+ {{ content | emojiReadTime }} {{ desc }}{{ articleTitle }}
+ {{ pageTitle or title }}
+ {% if desc %}
+
Posted on {{ date | niceDate }} by {{ sitemeta.siteAuthor.name }} - {% if updated %} - • Last updated on {{ updated | niceDate }}
- {% endif %} - {% if categories %} -Categories: - {% for cat in categories %} - {{ cat }}{% if not loop.last %}, {% endif %} - {% endfor %} -
- {% endif %} -{{ content | emojiReadTime }}
-{{ desc }}
- {% endif %} - {% endif %} -