Always pass link href through relLangURL

master
Will Faught 4 months ago
parent d333035890
commit 2fe3576cdf

@ -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">

Loading…
Cancel
Save