From 0ab11d6662028512b98325475cf7b021e2d6776f Mon Sep 17 00:00:00 2001 From: Sophia Atkinson Date: Wed, 21 Aug 2024 00:31:35 -0700 Subject: [PATCH] updated theme, and bumped version I made it easier for users to change 404, and 403 pages along with making it so if projects or resources aren't used then they are removed from the menu. This theme is now V2.1.1 --- assets/js/bundle.js | 2 +- assets/scss/template-styles.scss | 2 +- layouts/404.html | 24 ++++++++++++++++-------- layouts/_default/403.html | 24 ++++++++++++++++-------- layouts/partials/branding.html | 5 +---- layouts/partials/manualnavbar.html | 18 ++++++++++-------- 6 files changed, 45 insertions(+), 30 deletions(-) diff --git a/assets/js/bundle.js b/assets/js/bundle.js index f07328e..46a40f6 100644 --- a/assets/js/bundle.js +++ b/assets/js/bundle.js @@ -1,5 +1,5 @@ /* -Cook The Books v2.1.0 +Cook The Books v2.1.1 Licensed under CC BY-SA 4.0 Copyright 2022-2024 Oldgate Studios Copyright 2019-2024 ScriptsTown diff --git a/assets/scss/template-styles.scss b/assets/scss/template-styles.scss index ef51c2e..2fad333 100644 --- a/assets/scss/template-styles.scss +++ b/assets/scss/template-styles.scss @@ -1,6 +1,6 @@ @charset "UTF-8"; /* -Cook The Books v2.1.0 +Cook The Books v2.1.1 Licensed under CC BY-SA 4.0 Copyright 2022-2024 Oldgate Studios Copyright 2019-2024 ScriptsTown diff --git a/layouts/404.html b/layouts/404.html index f9f65e0..62292e4 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -6,17 +6,25 @@

404

-

Lost in cyberspace!

-

Uh-oh! It seems like the page you're looking for has gone on an unexpected interstellar journey. We're currently navigating through the digital cosmos to retrieve it.

-
-
- -
-
+

+ {{ with .Site.Params.notfound.header }}{{ . }}{{ else }}Page Not Found{{ end }} +

+

+ {{ with .Site.Params.notfound.paragraph }}{{ . }}{{ else }}Sorry, the page you are looking for could not be found.{{ end }} +

+ {{ with .Site.Params.notfound.image }} +
+
+ {{ with $.Site.Params.notfound.alt }}{{ . }}{{ end }} +
+
+ {{ end }}
-{{ end }} \ No newline at end of file +{{ end }} diff --git a/layouts/_default/403.html b/layouts/_default/403.html index dac5cca..64ea06d 100644 --- a/layouts/_default/403.html +++ b/layouts/_default/403.html @@ -6,17 +6,25 @@

403

-

The Path Ahead Is Forbidden

-

We regret to inform you that the journey you are attempting to embark upon has been deemed forbidden. You stand at the threshold of a path barred by digital locks and guarded by impenetrable gates.

-
-
- -
-
+

+ {{ with .Site.Params.forbidden.header }}{{ . }}{{ else }}Forbidden{{ end }} +

+

+ {{ with .Site.Params.forbidden.paragraph }}{{ . }}{{ else }}Sorry, you do not have permission to access this page.{{ end }} +

+ {{ with .Site.Params.forbidden.image }} +
+
+ {{ with $.Site.Params.forbidden.alt }}{{ . }}{{ end }} +
+
+ {{ end }}
-{{ end }} \ No newline at end of file +{{ end }} diff --git a/layouts/partials/branding.html b/layouts/partials/branding.html index df3c817..3d29fa4 100644 --- a/layouts/partials/branding.html +++ b/layouts/partials/branding.html @@ -1,10 +1,7 @@
diff --git a/layouts/partials/manualnavbar.html b/layouts/partials/manualnavbar.html index 9b96b95..3dd592c 100644 --- a/layouts/partials/manualnavbar.html +++ b/layouts/partials/manualnavbar.html @@ -1,3 +1,4 @@ +{{- if .Site.Menus.projects }} +{{- end }} +{{- if .Site.Menus.resources }} +{{- end }}