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