From 20a120c87bfa267df162d20bb106aad6e049d630 Mon Sep 17 00:00:00 2001 From: arian Date: Tue, 16 Jul 2024 20:43:16 +0200 Subject: [PATCH] add dates to pages (functionality) --- _src/_includes/base.njk | 180 ++++++++++++++++++++++++---------------- 1 file changed, 107 insertions(+), 73 deletions(-) diff --git a/_src/_includes/base.njk b/_src/_includes/base.njk index 16fb0a6..a549be8 100644 --- a/_src/_includes/base.njk +++ b/_src/_includes/base.njk @@ -1,84 +1,118 @@ - - - + - - - - - - - - - - - {{ title }} - - -
-
-

{{ title }}

-
- -
-
- Navigation - {% include "partials/nav-list.njk" %} -
+ /> + + + + + + + + + + + {{ title }} + + +
+
+

{{ title }}

+
-
- {% if content | toc | safe %} -
- Table of Contents -

- {{ content | toc | safe}} -

-
- {% endif %} +
+
+ Navigation + {% include "partials/nav-list.njk" %} +
- {{ content | safe}} -
-
+
+ {% if dateCreated %} Published: + {{ dateCreated.toLocaleString("en-AU", { weekday: "long", year: + "numeric", month: "long", day: "numeric" }) }} + {% endif %} +
+ {% if dateChanged %} Published: + {{ dateChanged.toLocaleString("en-AU", { weekday: "long", year: + "numeric", month: "long", day: "numeric" }) }} + {% endif %} {% if content | toc | safe %} +

Table of Contents

+
+ Click to open +

{{ content | toc | safe}}

+
+ {% endif %} {{ content | safe}} +
+
- {% readerBar 8px, "white" %} + {% readerBar 8px, "white" %} - -
- - \ No newline at end of file + +