fix: use safeCSS
All checks were successful
Blog Test / Check-Rebuild (push) Successful in 9s
Blog Test / Build (push) Successful in 11s
Blog Test / Deploy-Test (push) Successful in 11s
Blog Test / Test (push) Successful in 3s

This commit is contained in:
2026-04-02 19:21:38 +00:00
parent e8d217a053
commit 1e6e0b6e8d

View File

@@ -7,7 +7,7 @@
{{ $color := partial "helper/color-from-str" .LinkTitle }} {{ $color := partial "helper/color-from-str" .LinkTitle }}
{{ $BackgroundColor := default $color.BackgroundColor .Params.style.background }} {{ $BackgroundColor := default $color.BackgroundColor .Params.style.background }}
{{ $TextColor := default $color.TextColor .Params.style.color }} {{ $TextColor := default $color.TextColor .Params.style.color }}
<a href="{{ .RelPermalink }}" {{ with $Page.Params.style }}style="background-color: {{ .background }}; color: {{ .color }};"{{ end }}> <a href="{{ .RelPermalink }}" style="background-color: {{ $BackgroundColor | safeCSS }}; color: {{ $TextColor | safeCSS }};"></a>
{{ .LinkTitle }} {{ .LinkTitle }}
</a> </a>
{{ end }} {{ end }}