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/analytic-cfga.html | 2 +- layouts/partials/comment-disqusjs.html | 2 +- layouts/partials/head.html | 4 ++-- layouts/partials/math.html | 6 +++--- layouts/partials/scripts-end.html | 14 +++++++------- 5 files changed, 14 insertions(+), 14 deletions(-) (limited to 'layouts') diff --git a/layouts/partials/analytic-cfga.html b/layouts/partials/analytic-cfga.html index fa93ede..cd934ee 100644 --- a/layouts/partials/analytic-cfga.html +++ b/layouts/partials/analytic-cfga.html @@ -3,5 +3,5 @@ window.ga_tid = '{{ .Site.Params.googleAnalyticsTid }}'; window.ga_api = '{{ .Site.Params.googleAnalyticsRoute }}'; - + {{ end }} diff --git a/layouts/partials/comment-disqusjs.html b/layouts/partials/comment-disqusjs.html index 18d1d82..af5bd3d 100644 --- a/layouts/partials/comment-disqusjs.html +++ b/layouts/partials/comment-disqusjs.html @@ -3,7 +3,7 @@  {{ i18n "postComment" }} - + {{ end}} {{ if .Params.aplayer }} - + {{ end }} {{ if .Site.Params.useDisqusJS }} - + {{ end }} {{ partial "analytic-gtag.html" . }} {{ partial "analytic-cfga.html" . }} diff --git a/layouts/partials/math.html b/layouts/partials/math.html index 04d9610..3d3441e 100644 --- a/layouts/partials/math.html +++ b/layouts/partials/math.html @@ -1,6 +1,6 @@ - - - + + + - + + {{ else if eq .Section "archives" }} {{ else }} - - - - + + + + {{ end }} {{ $options := (dict "targetPath" "assets/js/fuji.min.js" "minify" true "target" "es2015" "format" "iife") }} {{ $built := resources.Get "js/fuji.js" | js.Build $options | resources.Fingerprint "sha512" }} @@ -15,7 +15,7 @@ {{ partial "math.html" . }} {{ end }} {{ with .Params.aplayer }} - +