From e765c3b24ef55835c24720cbc80d7072fb2e12f4 Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Mon, 19 Sep 2022 19:16:38 +0100 Subject: [PATCH] add and populate header and footer HTML templates. The HTML is basic, just to get the sections to a usable state. --- templates/layouts/footer.html | 3 +++ templates/layouts/header.html | 44 +++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 templates/layouts/footer.html create mode 100644 templates/layouts/header.html diff --git a/templates/layouts/footer.html b/templates/layouts/footer.html new file mode 100644 index 0000000..15a4083 --- /dev/null +++ b/templates/layouts/footer.html @@ -0,0 +1,3 @@ +
+© 2018 - {% lisp (local-time:timestamp-year (local-time:now)) %} Nicola Ellis + diff --git a/templates/layouts/header.html b/templates/layouts/header.html new file mode 100644 index 0000000..692e3d8 --- /dev/null +++ b/templates/layouts/header.html @@ -0,0 +1,44 @@ +
+ {% if roles.logged-in %} + Dashboard + Edit Account + {% if roles.administrator %} + Site Settings + {% endif %} +
+ + +
+ {% endif %} +
+
+ {% ifequal system-data.first.enable-site-logo 1 %} + {{system-data.first.site-name}} + {% endifequal %} +

{{system-data.first.site-name}}

+
+ +
+ +
+ +