From a81ed6803b5ae618528974e18a12d871c2162f00 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Wed, 12 Apr 2017 21:38:10 +0300 Subject: [PATCH] layouts/_default/baseof.html: Allow disabling of SRI Some sites using edge caching like that on a CDN or S3 might have issues with assets being cached too long, causing user agents to refuse to load assets due to SRI hash mismatch. These sites should disable the use of sub-resource integrity hashes using this config option in their config: disable_sri = true --- layouts/_default/baseof.html | 2 +- layouts/partials/cookie-consent.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index e097cea..b1db42d 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -13,7 +13,7 @@ {{ block "title" . }}{{ .Site.Title }}{{ end }} {{ "" | safeHTML }} - + {{ if .RSSLink }} {{ "" | safeHTML }} diff --git a/layouts/partials/cookie-consent.html b/layouts/partials/cookie-consent.html index 90343b3..05b81ed 100644 --- a/layouts/partials/cookie-consent.html +++ b/layouts/partials/cookie-consent.html @@ -1,5 +1,5 @@ - - + +