diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index d3af73e..cd8310d 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -14,19 +14,19 @@ {{ with partial "resources/root_css.html" . -}} - + {{- end -}} {{- with partial "resources/section_css.html" . -}} - + {{- end -}} {{- with partial "resources/page_css.html" . -}} - + {{- end -}} {{ block "styles" . }}{{ end }} {{ block "scripts" . }}{{ end }} {{- with partial "resources/site_js.html" . -}} - + {{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index b806f1c..3a8bfe9 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -9,16 +9,16 @@ {{ define "scripts" }} {{- if .HasShortcode "figures/railroad" -}} {{- with partial "resources/railroad_utils.html" . -}} - + {{- end -}} {{- end -}} {{- if .HasShortcode "figures/p5" -}} {{- with partial "secure_asset.html" "scripts/lib/p5-1.5.0.js" -}} - + {{- end -}} {{- with partial "secure_asset.html" "scripts/sketch-utils.js" -}} - + {{- end -}} {{- end -}} diff --git a/layouts/partials/resources/page_css.html b/layouts/partials/resources/page_css.html index 7b27bc8..f5ff4d9 100644 --- a/layouts/partials/resources/page_css.html +++ b/layouts/partials/resources/page_css.html @@ -1,5 +1,5 @@ {{ $pageCSS := dict }} {{ with .Resources.Match "*.css" }} - {{ $pageCSS = . | resources.Concat "page.css" | fingerprint "sha512" }} + {{ $pageCSS = . | resources.Concat "page.css" | fingerprint "md5" }} {{ end }} {{ return $pageCSS }} diff --git a/layouts/partials/resources/railroad_utils.html b/layouts/partials/resources/railroad_utils.html index 475adbf..4b7b6a0 100644 --- a/layouts/partials/resources/railroad_utils.html +++ b/layouts/partials/resources/railroad_utils.html @@ -1,4 +1,4 @@ {{- $railroadUtilsJS := resources.Get "scripts/railroad-utils.js" | resources.ExecuteAsTemplate "scripts/railroad_utils.js" . - | resources.Fingerprint "sha512" -}} + | resources.Fingerprint "md5" -}} {{ return $railroadUtilsJS }} diff --git a/layouts/partials/resources/root_css.html b/layouts/partials/resources/root_css.html index 615c218..a47dddf 100644 --- a/layouts/partials/resources/root_css.html +++ b/layouts/partials/resources/root_css.html @@ -7,5 +7,5 @@ {{ $rootCSS := $allStylesheets | resources.Concat "styles/root.css" | resources.ExecuteAsTemplate "styles/root.css" . - | fingerprint "sha512" }} + | fingerprint "md5" }} {{ return $rootCSS }} diff --git a/layouts/partials/resources/section_css.html b/layouts/partials/resources/section_css.html index a1a053e..0801efb 100644 --- a/layouts/partials/resources/section_css.html +++ b/layouts/partials/resources/section_css.html @@ -6,6 +6,6 @@ {{ $sectionStylesheet = printf "styles/%s.css" .Section }} {{ end }} {{ with resources.Get $sectionStylesheet }} - {{ $sectionCSS = . | fingerprint "sha512" }} + {{ $sectionCSS = . | fingerprint "md5" }} {{ end }} {{ return $sectionCSS }} diff --git a/layouts/partials/resources/site_js.html b/layouts/partials/resources/site_js.html index 5b5ccb5..249f654 100644 --- a/layouts/partials/resources/site_js.html +++ b/layouts/partials/resources/site_js.html @@ -1,2 +1,2 @@ -{{ $siteJS := resources.Get "scripts/site.js" | fingerprint "sha512" }} +{{ $siteJS := resources.Get "scripts/site.js" | fingerprint "md5" }} {{ return $siteJS }} diff --git a/layouts/partials/secure_asset.html b/layouts/partials/secure_asset.html index ec3a12c..b6e83c4 100644 --- a/layouts/partials/secure_asset.html +++ b/layouts/partials/secure_asset.html @@ -1,5 +1,5 @@ {{ $asset := dict }} {{ with resources.Get . }} - {{ $asset = dict "Resource" . "Secure" (. | resources.Fingerprint "sha512") }} + {{ $asset = dict "Resource" . "Secure" (. | resources.Fingerprint "md5") }} {{ end }} {{ return $asset }}