summaryrefslogtreecommitdiff
path: root/layouts/partials/footer.html
diff options
context:
space:
mode:
authorJohn <44279692+hlwjia@users.noreply.github.com>2021-01-26 00:08:10 +0800
committerGitHub <noreply@github.com>2021-01-25 21:38:10 +0530
commit9e99493e696961bf6dfd58c8540184c8ad4132f7 (patch)
treedaae41624b0a773c2c3d0a0b465629c3740ef64e /layouts/partials/footer.html
parent789b1f824c61a4d9fd069aba92d2891a1c2375fc (diff)
Use md5 instead of default sha256 for generating SRI hashes (#195)
reference: https://gohugo.io/hugo-pipes/fingerprint/
Diffstat (limited to 'layouts/partials/footer.html')
-rw-r--r--layouts/partials/footer.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 276a76a..454c091 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -20,7 +20,7 @@
{{- $isHLJSdisabled := (.Site.Params.assets.disableHLJS | default .Params.disableHLJS ) }}
{{- if (and (eq .Kind "page") (ne .Layout "archives") (ne .Layout "search") (not $isHLJSdisabled)) }}
{{- if not .Site.Params.assets.disableFingerprinting }}
-{{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify | fingerprint }}
+{{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify | resources.Fingerprint "md5" }}
<script defer src="{{ $highlight.RelPermalink }}" integrity="{{ $highlight.Data.Integrity }}"
onload="hljs.initHighlightingOnLoad();"></script>
{{- else}}