Organize
This commit is contained in:
@@ -2,17 +2,16 @@
|
|||||||
|
|
||||||
{{ $context := $params.context }}
|
{{ $context := $params.context }}
|
||||||
{{ $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 }}
|
||||||
{{ $template := $params.template }}
|
{{ $template := $params.template }}
|
||||||
|
|
||||||
{{ $enablesourcemap := not hugo.IsProduction }}
|
|
||||||
{{ $outputstyle := cond hugo.IsProduction "compressed" "" }}
|
|
||||||
|
|
||||||
{{ if not $href }}
|
{{ if not $href }}
|
||||||
{{ errorf "layouts/partials/paige/tag-link.html: no href" }}
|
{{ errorf "layouts/partials/paige/tag-link.html: no href" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
{{ with partial "paige/func-resource.html" (dict "page" $page "url" $src) }}
|
{{ with partial "paige/func-resource.html" (dict "page" $page "url" $src) }}
|
||||||
{{ $resource := . | minify | fingerprint }}
|
{{ $resource := . | minify | fingerprint }}
|
||||||
|
|
||||||
{{ $integrity = $resource.Data.Integrity }}
|
{{ $integrity = $resource.Data.Integrity }}
|
||||||
{{ $src = $resource.RelPermalink }}
|
{{ $src = $resource.RelPermalink }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
Reference in New Issue
Block a user