summaryrefslogtreecommitdiffstats
path: root/layouts/partials/head.html
diff options
context:
space:
mode:
authordsrkafuu2022-12-23 09:34:22 +0800
committerdsrkafuu2022-12-23 09:34:22 +0800
commit92fe789b68bd80708923954ae64408234b141d1b (patch)
treecace42a95403740cb19ee43082dacf9a6cc9beab /layouts/partials/head.html
parent22bc4782fe14e031f75e3199f525adbf355fe5ee (diff)
parent564ef0171b643743ae5f044d0524785d40d481e9 (diff)
downloadhugo-theme-fuji-92fe789b68bd80708923954ae64408234b141d1b.tar.gz
hugo-theme-fuji-92fe789b68bd80708923954ae64408234b141d1b.tar.bz2
hugo-theme-fuji-92fe789b68bd80708923954ae64408234b141d1b.zip
Merge branch 'Saftius-asset-integrity-checks'
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 7dedc44..99e0e98 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -34,16 +34,16 @@
<!-- dep -->
{{ partial "styles.html" . }}
{{ $options := (dict "targetPath" "assets/css/fuji.min.css" "outputStyle" "compressed") }}
-{{ $style := resources.Get "scss/fuji.scss" | resources.ToCSS $options }}
-<link rel="stylesheet" href="{{ $style.Permalink }}" />
+{{ $style := resources.Get "scss/fuji.scss" | resources.ToCSS $options | resources.Fingerprint "sha512" }}
+<link rel="stylesheet" href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}" />
{{ with .Site.Params.googleAdsense }}
<script async data-ad-client="ca-pub-{{ . }}" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
{{ end}}
{{ if .Params.aplayer }}
-<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.css" />
+<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.css" integrity="sha512-CIYsJUa3pr1eoXlZFroEI0mq0UIMUqNouNinjpCkSWo3Bx5NRlQ0OuC6DtEB/bDqUWnzXc1gs2X/g52l36N5iw==" crossorigin="anonymous">
{{ end }}
{{ if .Site.Params.useDisqusJS }}
-<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/disqusjs@1.3.0/dist/disqusjs.css" />
+<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/disqusjs@1.3.0/dist/disqusjs.css" integrity="sha512-ETZaCUD/oKDyXhm065Kgi1WXukzv7EWek8RgqpI/RAniGf8eKo1XVP8tXe7AlGsiPf+m7M2wiq+C6vIGRdP40Q==" crossorigin="anonymous">
{{ end }}
{{ partial "analytic-gtag.html" . }}
{{ partial "analytic-cfga.html" . }}