From ab658a8750a5510924b75c95030a872e472934e4 Mon Sep 17 00:00:00 2001 From: Amolith Date: Mon, 30 Sep 2024 15:46:39 -0600 Subject: [PATCH] Update template for more recent Hugo --- themes/secluded/layouts/partials/head.html | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/themes/secluded/layouts/partials/head.html b/themes/secluded/layouts/partials/head.html index 769f86e..cee4d9a 100644 --- a/themes/secluded/layouts/partials/head.html +++ b/themes/secluded/layouts/partials/head.html @@ -38,11 +38,20 @@ - {{ $options := (dict "outputStyle" "compressed" "enableSourceMap" true) }} - {{ $scss := resources.Get "scss/imports.scss" }} - {{ $style := $scss | resources.ToCSS $options }} - - + {{ with resources.Get "scss/imports.scss" }} + {{ $opts := dict "outputStyle" "compressed" "enabledSourceMap" true "transpiler" "libsass" "targetPath" "css/style.css" }} + {{ with . | toCSS $opts }} + {{ if hugo.IsDevelopment }} + + + {{ else }} + {{ with . | minify | fingerprint }} + + + {{ end }} + {{ end }} + {{ end }} + {{ end }} {{ partialCached "favicons.html" . }}