From 627f1f5d32ebeb89c41f72d960b4ab35778f7625 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Wed, 25 Jan 2023 17:45:06 +0100 Subject: Added themes --- layouts/404.html | 4 ++-- layouts/_default/baseof.html | 6 +++--- layouts/partials/nav.html | 7 +++++++ layouts/partials/themeSwitcher.html | 14 ++++++++++++++ 4 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 layouts/partials/themeSwitcher.html (limited to 'layouts') diff --git a/layouts/404.html b/layouts/404.html index dfe20b2..31808d1 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -15,8 +15,7 @@ {{- $header := resources.Get "header.css" -}} {{- $home := resources.Get "home.css" -}} {{- $pagination := resources.Get "pagination.css" -}} - {{- $selenized := resources.Get "selenized.css" -}} - {{- $allCss := slice $base $code $footer $header $home $pagination $selenized | resources.Concat "static/all.css" | fingerprint | minify -}} + {{- $allCss := slice $base $code $footer $header $home $pagination | resources.Concat "static/all.css" | fingerprint | minify -}} {{ range .AlternativeOutputFormats -}} @@ -33,5 +32,6 @@

Sorry, but the page you were trying to view does not exist. Please refer to the menu above to resume your navigation.

{{- partial "footer.html" . -}} + {{- partial "themeSwitcher.html" . -}} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 239a5ab..201d609 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,7 +1,7 @@ {{ $title := print .Title " | " .Site.Title }} {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} - + @@ -15,8 +15,7 @@ {{- $header := resources.Get "header.css" -}} {{- $home := resources.Get "home.css" -}} {{- $pagination := resources.Get "pagination.css" -}} - {{- $selenized := resources.Get "selenized.css" -}} - {{- $allCss := slice $base $code $footer $header $home $pagination $selenized | resources.Concat "static/all.css" | fingerprint | minify -}} + {{- $allCss := slice $base $code $footer $header $home $pagination | resources.Concat "static/all.css" | fingerprint | minify -}} {{ range .AlternativeOutputFormats -}} @@ -32,5 +31,6 @@ {{- block "main" . }}{{ end -}} {{- partial "footer.html" . -}} + {{- partial "themeSwitcher.html" . -}} diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 1020c03..5abfc6f 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -2,6 +2,13 @@