Always pass link href through relLangURL

This commit is contained in:
Will Faught
2025-03-02 23:14:17 -08:00
parent d333035890
commit 2fe3576cdf

View File

@@ -2,7 +2,7 @@
{{ $context := $params.context }}
{{ $enablesourcemap := not hugo.IsProduction }}
{{ $href := $params.href }}
{{ $href := relLangURL $params.href }}
{{ $integrity := $params.integrity }}
{{ $origin := $params.crossorigin | default "anonymous" }}
{{ $outputstyle := cond hugo.IsProduction "compressed" "" }}
@@ -35,8 +35,6 @@
{{ $href = $resource.RelPermalink }}
{{ $integrity = $resource.Data.Integrity }}
{{ else }}
{{ $href = relLangURL $href }}
{{ end }}
<link {{ with $origin }} crossorigin="{{ . }}" {{ end }} href="{{ $href }}" {{ with $integrity }} integrity="{{ . }}" {{ end }} {{ with $policy }} referrerpolicy="{{ . }}" {{ end }} rel="stylesheet">