Separate params and locals

This commit is contained in:
Will Faught
2023-03-05 14:59:47 -08:00
parent fdbf5701f0
commit 1c94f4e4f9

View File

@@ -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 }}