From 16994b52c0e32f1015a06ffb4d4f0a86a4bf0abe Mon Sep 17 00:00:00 2001
From: Saftius
Date: Wed, 21 Dec 2022 19:58:46 +0100
Subject: Add resource integrity check to local resources
* See [Hugo Docs on Fingerprinting and SRI](https://gohugo.io/hugo-pipes/fingerprint/)
---
layouts/partials/head.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'layouts/partials/head.html')
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 7dedc44..3dbe2a9 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -34,8 +34,8 @@
{{ partial "styles.html" . }}
{{ $options := (dict "targetPath" "assets/css/fuji.min.css" "outputStyle" "compressed") }}
-{{ $style := resources.Get "scss/fuji.scss" | resources.ToCSS $options }}
-
+{{ $style := resources.Get "scss/fuji.scss" | resources.ToCSS $options | resources.Fingerprint "sha512" }}
+
{{ with .Site.Params.googleAdsense }}
{{ end}}
--
cgit v1.2.3
From 564ef0171b643743ae5f044d0524785d40d481e9 Mon Sep 17 00:00:00 2001
From: Saftius
Date: Wed, 21 Dec 2022 22:23:48 +0100
Subject: Add integrity check to remote resources
* Generated with [SRI Hash Generator](https://www.srihash.org/)
---
layouts/partials/head.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'layouts/partials/head.html')
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 3dbe2a9..99e0e98 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -40,10 +40,10 @@
{{ end}}
{{ if .Params.aplayer }}
-
+
{{ end }}
{{ if .Site.Params.useDisqusJS }}
-
+
{{ end }}
{{ partial "analytic-gtag.html" . }}
{{ partial "analytic-cfga.html" . }}
--
cgit v1.2.3