Separate params and locals
This commit is contained in:
@@ -1,15 +1,16 @@
|
|||||||
{{ $params := . }}
|
{{ $params := . }}
|
||||||
|
|
||||||
{{ $crossorigin := $params.crossorigin | default "anonymous" }}
|
{{ $crossorigin := $params.crossorigin | default "anonymous" }}
|
||||||
{{ $enablesourcemap := not hugo.IsProduction }}
|
|
||||||
{{ $href := $params.href }}
|
{{ $href := $params.href }}
|
||||||
{{ $includepaths := $params.includepaths }}
|
{{ $includepaths := $params.includepaths }}
|
||||||
{{ $integrity := $params.integrity }}
|
{{ $integrity := $params.integrity }}
|
||||||
{{ $outputstyle := cond hugo.IsProduction "compressed" "" }}
|
|
||||||
{{ $page := $params.page }}
|
{{ $page := $params.page }}
|
||||||
{{ $referrerpolicy := $params.referrerpolicy | default "no-referrer" }}
|
{{ $referrerpolicy := $params.referrerpolicy | default "no-referrer" }}
|
||||||
{{ $sass := $params.sass }}
|
{{ $sass := $params.sass }}
|
||||||
|
|
||||||
|
{{ $enablesourcemap := not hugo.IsProduction }}
|
||||||
|
{{ $outputstyle := cond hugo.IsProduction "compressed" "" }}
|
||||||
|
|
||||||
{{ if not $href }}
|
{{ if not $href }}
|
||||||
{{ errorf "paige/link: no href" }}
|
{{ errorf "paige/link: no href" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Reference in New Issue
Block a user