From 4d5a9b7f0c4339b16f253743f973c4a994b43946 Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Sun, 9 Oct 2022 21:40:35 +0100 Subject: [PATCH] update /layouts/header.html template with new CSS rules. This commit makes the header (site's name and logo) a link which points back to the site's "/" (I.E. Home page/route). It, also, centralises the header and the navigation menu (in the header). This is so the header doesn't look weird when viewed on a mobile phone. I removed the
at the bottom of the file because the site has enough styling applied to it to make the
look out of place now. I can clearly denote/identify where the site's (front-end) header and footer stops and starts. --- templates/layouts/header.html | 233 ++++++++++++++++++---------------- 1 file changed, 125 insertions(+), 108 deletions(-) diff --git a/templates/layouts/header.html b/templates/layouts/header.html index cebfc02..b66d6b0 100644 --- a/templates/layouts/header.html +++ b/templates/layouts/header.html @@ -3,13 +3,13 @@
-

Logged in as: {{user.username}}

+

Logged in as: {{user.username}}

{% endif %} @@ -17,79 +17,79 @@ {% if roles.logged-in %}
-
- - Dashboard - Dashboard - +
+ + Dashboard + Dashboard + - - Dashboard - Storage - -
-
-

Archive

- - New Page - Create Entry - - - New Page - Archive Index - -
-
-

Pages

- - New Page - Add Page - - - New Page - Pages Index - -
+ + Dashboard + Storage + +
+
+

Archive

+ + New Page + Create Entry + + + New Page + Archive Index + +
+
+

Pages

+ + New Page + Add Page + + + New Page + Pages Index + +
-

Accounts and Settings

- - Edit Profile - My Account Details - - {% if roles.administrator %} - - Manage Accounts - Manage Accounts - - - Site Settings - Site Settings - - {% endif %} +

Accounts and Settings

+ + Edit Profile + My Account Details + + {% if roles.administrator %} + + Manage Accounts + Manage Accounts + + + Site Settings + Site Settings + + {% endif %}
-
- - -
+ + +
{% endif %} @@ -97,46 +97,63 @@
{% if alert %}
- {{alert | safe}} - + id="be-alert-container"> + {{alert | safe}} +
{% endif %} -
- {% ifequal system-data.first.enable-site-logo 1 %} - {{system-data.first.site-name}} + {% ifequal system-data.first.enable-site-logo 1 %} + {{system-data.first.site-name}} - {% endifequal %} -

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

-
+ {% endifequal %} +

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

+ -
- -
-
+