From bc1123dcea28883217a1c4e9b5d258a1d4fc9829 Mon Sep 17 00:00:00 2001 From: Christian Wolf Date: Tue, 21 Jan 2025 19:22:47 +0100 Subject: [PATCH] Fingerprint CSS --- themes/tsc_vfl/layouts/partials/page/head.html | 1 + 1 file changed, 1 insertion(+) diff --git a/themes/tsc_vfl/layouts/partials/page/head.html b/themes/tsc_vfl/layouts/partials/page/head.html index 262eb32d..25a2b920 100644 --- a/themes/tsc_vfl/layouts/partials/page/head.html +++ b/themes/tsc_vfl/layouts/partials/page/head.html @@ -13,6 +13,7 @@ {{ with .Keywords }}{{ end }} {{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction) "transpiler" "dartsass") }} {{ $scss := resources.Get "css/main.scss" | css.Sass $options }} + {{ if hugo.IsProduction }}{{ $scss = $scss | minify | fingerprint }}{{ end }} {{ $title := print .Site.Title " | " .Title }} {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}