From 83f45feffff65a25bf47c155eee9d30875baa4f2 Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Sat, 7 Dec 2024 07:52:31 +0100 Subject: [PATCH] scss: improve the scss pipe - Adds the fingerprint of the processed css files. Co-Authored-by: iGor milhit --- layouts/partials/head.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 7cf52c6..2fda361 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -18,12 +18,12 @@ "targetPath" "styles.css" "includePaths" (slice "node_modules") ) -}} - {{- $styles := resources.Get "scss/main.scss" | toCSS $options | minify -}} - + {{- $styles := resources.Get "scss/main.scss" | toCSS $options | minify | fingerprint -}} + {{- end }} {{ $options := (dict "targetPath" "print.css" ) -}} - {{- $print := resources.Get "css/gutenberg.css" | toCSS $options | minify -}} - + {{- $print := resources.Get "css/gutenberg.css" | toCSS $options | minify | fingerprint -}} + {{ range .AlternativeOutputFormats }} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end }}