diff --git a/layouts/partials/paige/script.html b/layouts/partials/paige/script.html index daa01c2a..ec375bf9 100644 --- a/layouts/partials/paige/script.html +++ b/layouts/partials/paige/script.html @@ -4,14 +4,18 @@ {{ $onload := .onload | safeJS }} {{ $page := .page }} {{ $referrerpolicy := .referrerpolicy | default "no-referrer" }} +{{ $remote := .remote }} {{ $src := .src }} -{{ $resource := (partial `paige/func-resource.html` (dict - "page" $page - "url" $src -)) | minify | fingerprint }} - -{{ $integrity = $resource.Data.Integrity }} -{{ $src = $resource.RelPermalink }} +{{ if $remote }} + {{ $src = relLangURL $src }} +{{ else }} + {{ $resource := (partial "paige/func-resource.html" (dict + "page" $page + "url" $src + )) | minify | fingerprint }} + {{ $integrity = $resource.Data.Integrity }} + {{ $src = $resource.RelPermalink }} +{{ end }}