|
|
@ -1,15 +1,15 @@
|
|
|
|
{{ $params := . }}
|
|
|
|
{{ $params := . }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ $context := $params.context }}
|
|
|
|
{{ $context := $params.context }}
|
|
|
|
{{ $enablesourcemap := not hugo.IsProduction }}
|
|
|
|
|
|
|
|
{{ $href := $params.href }}
|
|
|
|
{{ $href := $params.href }}
|
|
|
|
{{ $integrity := $params.integrity }}
|
|
|
|
{{ $integrity := $params.integrity }}
|
|
|
|
|
|
|
|
{{ $map := not hugo.IsProduction }}
|
|
|
|
{{ $origin := $params.crossorigin | default "anonymous" }}
|
|
|
|
{{ $origin := $params.crossorigin | default "anonymous" }}
|
|
|
|
{{ $outputstyle := cond hugo.IsProduction "compressed" "" }}
|
|
|
|
|
|
|
|
{{ $page := $params.page }}
|
|
|
|
{{ $page := $params.page }}
|
|
|
|
{{ $paths := $params.includepaths }}
|
|
|
|
{{ $paths := $params.includepaths }}
|
|
|
|
{{ $policy := $params.referrerpolicy | default "no-referrer" }}
|
|
|
|
{{ $policy := $params.referrerpolicy | default "no-referrer" }}
|
|
|
|
{{ $sass := $params.sass }}
|
|
|
|
{{ $sass := $params.sass }}
|
|
|
|
|
|
|
|
{{ $style := cond hugo.IsProduction "compressed" "" }}
|
|
|
|
{{ $template := $params.template }}
|
|
|
|
{{ $template := $params.template }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ $resource := partial "paige/func-resource.html" (dict "page" $page "url" $href) }}
|
|
|
|
{{ $resource := partial "paige/func-resource.html" (dict "page" $page "url" $href) }}
|
|
|
@ -33,7 +33,7 @@
|
|
|
|
{{ if $sass }}
|
|
|
|
{{ if $sass }}
|
|
|
|
{{/* TODO: Remove the silenceDeprecations option when Bootstrap is updated beyond v5.3.3. */}}
|
|
|
|
{{/* TODO: Remove the silenceDeprecations option when Bootstrap is updated beyond v5.3.3. */}}
|
|
|
|
|
|
|
|
|
|
|
|
{{ $resource = $resource | toCSS (dict "enableSourceMap" $enablesourcemap "includePaths" $paths "outputStyle" $outputstyle "silenceDeprecations" (slice "color-functions" "global-builtin" "import" "mixed-decls") "transpiler" "dartsass") }}
|
|
|
|
{{ $resource = $resource | toCSS (dict "enableSourceMap" $map "includePaths" $paths "outputStyle" $style "silenceDeprecations" (slice "color-functions" "global-builtin" "import" "mixed-decls") "transpiler" "dartsass") }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ $resource = $resource | minify | fingerprint }}
|
|
|
|
{{ $resource = $resource | minify | fingerprint }}
|
|
|
|