Always pass link href through relLangURL
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{{ $context := $params.context }}
|
{{ $context := $params.context }}
|
||||||
{{ $enablesourcemap := not hugo.IsProduction }}
|
{{ $enablesourcemap := not hugo.IsProduction }}
|
||||||
{{ $href := $params.href }}
|
{{ $href := relLangURL $params.href }}
|
||||||
{{ $integrity := $params.integrity }}
|
{{ $integrity := $params.integrity }}
|
||||||
{{ $origin := $params.crossorigin | default "anonymous" }}
|
{{ $origin := $params.crossorigin | default "anonymous" }}
|
||||||
{{ $outputstyle := cond hugo.IsProduction "compressed" "" }}
|
{{ $outputstyle := cond hugo.IsProduction "compressed" "" }}
|
||||||
@@ -35,8 +35,6 @@
|
|||||||
|
|
||||||
{{ $href = $resource.RelPermalink }}
|
{{ $href = $resource.RelPermalink }}
|
||||||
{{ $integrity = $resource.Data.Integrity }}
|
{{ $integrity = $resource.Data.Integrity }}
|
||||||
{{ else }}
|
|
||||||
{{ $href = relLangURL $href }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<link {{ with $origin }} crossorigin="{{ . }}" {{ end }} href="{{ $href }}" {{ with $integrity }} integrity="{{ . }}" {{ end }} {{ with $policy }} referrerpolicy="{{ . }}" {{ end }} rel="stylesheet">
|
<link {{ with $origin }} crossorigin="{{ . }}" {{ end }} href="{{ $href }}" {{ with $integrity }} integrity="{{ . }}" {{ end }} {{ with $policy }} referrerpolicy="{{ . }}" {{ end }} rel="stylesheet">
|
||||||
|
Reference in New Issue
Block a user