From 63e45137afbc4c0f3e8c24f0d0d4a8222a97fd9b Mon Sep 17 00:00:00 2001 From: minoplhy Date: Thu, 14 Mar 2024 02:39:42 +0700 Subject: [PATCH] Revert "hugo-bearblog : add smarter way to handle flickering on page load" This reverts commit 00113c9222cbf862c9026d3fbdc786b4583d349e. --- layouts/_default/baseof.html | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index edddf60..cb1c1d2 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -17,7 +17,7 @@ {{- /* CSS stylesheet */}} - {{- $stylesheet := (resources.Get "css/style.css") | resources.Minify }} + {{- $stylesheet := (resources.Match "css/*.css") | resources.Concat "css/style.css" | resources.Minify }} {{- if not site.Params.assets.disableFingerprinting }} {{- $stylesheet := $stylesheet | fingerprint }} @@ -41,16 +41,6 @@ - - {{- /* Bottom Javascript */}} - {{- $darkmode_load_script := (resources.Get "js/darkmode_load.js") | resources.Minify}} - {{- if not site.Params.assets.disableFingerprinting }} - {{- $darkmode_load_script := $darkmode_load_script | fingerprint }} - - {{ else }} - - {{ end }} -
{{- partial "header.html" . -}}
@@ -66,6 +56,15 @@ {{- partial "custom_footer.html" -}} + {{- /* Bottom Javascript */}} + {{- $darkmode_load_script := (resources.Get "js/darkmode_load.js") | resources.Minify}} + {{- if not site.Params.assets.disableFingerprinting }} + {{- $darkmode_load_script := $darkmode_load_script | fingerprint }} + + {{ else }} + + {{ end }} +