From 7cf1df56f5d565a605f68f3e46fdefb49784b33a Mon Sep 17 00:00:00 2001 From: Will Faught Date: Thu, 6 Feb 2025 18:42:42 -0800 Subject: [PATCH] Organize --- layouts/partials/paige/tag-link.html | 5 ++--- layouts/partials/paige/tag-script.html | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/paige/tag-link.html b/layouts/partials/paige/tag-link.html index f4d3cde3..31c2840a 100644 --- a/layouts/partials/paige/tag-link.html +++ b/layouts/partials/paige/tag-link.html @@ -2,17 +2,16 @@ {{ $context := $params.context }} {{ $crossorigin := $params.crossorigin | default "anonymous" }} +{{ $enablesourcemap := not hugo.IsProduction }} {{ $href := $params.href }} {{ $includepaths := $params.includepaths }} {{ $integrity := $params.integrity }} +{{ $outputstyle := cond hugo.IsProduction "compressed" "" }} {{ $page := $params.page }} {{ $referrerpolicy := $params.referrerpolicy | default "no-referrer" }} {{ $sass := $params.sass }} {{ $template := $params.template }} -{{ $enablesourcemap := not hugo.IsProduction }} -{{ $outputstyle := cond hugo.IsProduction "compressed" "" }} - {{ if not $href }} {{ errorf "layouts/partials/paige/tag-link.html: no href" }} {{ end }} diff --git a/layouts/partials/paige/tag-script.html b/layouts/partials/paige/tag-script.html index 834adf11..13d4bc59 100644 --- a/layouts/partials/paige/tag-script.html +++ b/layouts/partials/paige/tag-script.html @@ -15,6 +15,7 @@ {{ with partial "paige/func-resource.html" (dict "page" $page "url" $src) }} {{ $resource := . | minify | fingerprint }} + {{ $integrity = $resource.Data.Integrity }} {{ $src = $resource.RelPermalink }} {{ else }}