From 6745a04bf4e7d784d8e1d178f3c96c4fb2842299 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Fri, 28 Mar 2025 22:17:37 -0700 Subject: [PATCH] Shorten var names --- layouts/partials/paige/tag-link.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/paige/tag-link.html b/layouts/partials/paige/tag-link.html index 11dd04cf..f75ab33c 100644 --- a/layouts/partials/paige/tag-link.html +++ b/layouts/partials/paige/tag-link.html @@ -1,15 +1,15 @@ {{ $params := . }} {{ $context := $params.context }} -{{ $enablesourcemap := not hugo.IsProduction }} {{ $href := $params.href }} {{ $integrity := $params.integrity }} +{{ $map := not hugo.IsProduction }} {{ $origin := $params.crossorigin | default "anonymous" }} -{{ $outputstyle := cond hugo.IsProduction "compressed" "" }} {{ $page := $params.page }} {{ $paths := $params.includepaths }} {{ $policy := $params.referrerpolicy | default "no-referrer" }} {{ $sass := $params.sass }} +{{ $style := cond hugo.IsProduction "compressed" "" }} {{ $template := $params.template }} {{ $resource := partial "paige/func-resource.html" (dict "page" $page "url" $href) }} @@ -33,7 +33,7 @@ {{ if $sass }} {{/* TODO: Remove the silenceDeprecations option when Bootstrap is updated beyond v5.3.3. */}} - {{ $resource = $resource | toCSS (dict "enableSourceMap" $enablesourcemap "includePaths" $paths "outputStyle" $outputstyle "silenceDeprecations" (slice "color-functions" "global-builtin" "import" "mixed-decls") "transpiler" "dartsass") }} + {{ $resource = $resource | toCSS (dict "enableSourceMap" $map "includePaths" $paths "outputStyle" $style "silenceDeprecations" (slice "color-functions" "global-builtin" "import" "mixed-decls") "transpiler" "dartsass") }} {{ end }} {{ $resource = $resource | minify | fingerprint }}