From 1c94f4e4f905e7c65206db3292568bb02a869a78 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sun, 5 Mar 2023 14:59:47 -0800 Subject: [PATCH] Separate params and locals --- layouts/partials/paige/link.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layouts/partials/paige/link.html b/layouts/partials/paige/link.html index 1c1347fa..e76237c0 100644 --- a/layouts/partials/paige/link.html +++ b/layouts/partials/paige/link.html @@ -1,15 +1,16 @@ {{ $params := . }} {{ $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 }} +{{ $enablesourcemap := not hugo.IsProduction }} +{{ $outputstyle := cond hugo.IsProduction "compressed" "" }} + {{ if not $href }} {{ errorf "paige/link: no href" }} {{ end }}