From 1f3ac51b25099baf62a38571063bc22b6dca2ca7 Mon Sep 17 00:00:00 2001 From: Steven Hadfield Date: Tue, 15 Nov 2022 22:37:30 -0800 Subject: [PATCH] Ensure SRI is included for CSS assets --- layouts/partials/head.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 9979740..d471874 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -19,12 +19,12 @@ {{ end }} - + + {{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" true) }} {{ $style := resources.Get "scss/main.scss" | resources.ToCSS $options | resources.Fingerprint }} - + {{ range $val := $.Site.Params.customCSS }} {{ if gt (len $val) 0 }}