Remove relLangURL from link, script
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{{ $crossorigin := $params.crossorigin | default "anonymous" }}
|
{{ $crossorigin := $params.crossorigin | default "anonymous" }}
|
||||||
{{ $enablesourcemap := not hugo.IsProduction }}
|
{{ $enablesourcemap := not hugo.IsProduction }}
|
||||||
{{ $href := relLangURL $params.href }}
|
{{ $href := $params.href }}
|
||||||
{{ $includepaths := $params.includepaths }}
|
{{ $includepaths := $params.includepaths }}
|
||||||
{{ $integrity := $params.integrity }}
|
{{ $integrity := $params.integrity }}
|
||||||
{{ $outputstyle := cond hugo.IsProduction "compressed" "" }}
|
{{ $outputstyle := cond hugo.IsProduction "compressed" "" }}
|
||||||
|
@@ -10,11 +10,11 @@
|
|||||||
{{ $src := $params.src }}
|
{{ $src := $params.src }}
|
||||||
|
|
||||||
{{ if $raw }}
|
{{ if $raw }}
|
||||||
{{ $src = relLangURL $src }}
|
{{ $src = $src }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $resource := (partial "paige/func-resource.html" (dict
|
{{ $resource := (partial "paige/func-resource.html" (dict
|
||||||
"page" $page
|
"page" $page
|
||||||
"url" (relLangURL $src)
|
"url" $src
|
||||||
)) | minify | fingerprint }}
|
)) | minify | fingerprint }}
|
||||||
|
|
||||||
{{ $integrity = $resource.Data.Integrity }}
|
{{ $integrity = $resource.Data.Integrity }}
|
||||||
|
Reference in New Issue
Block a user