fix: colors
All checks were successful
Blog Test / Check-Rebuild (push) Successful in 15s
Blog Test / Build (push) Successful in 16s
Blog Test / Deploy-Test (push) Successful in 12s
Blog Test / Test (push) Successful in 3s

This commit is contained in:
2026-04-02 19:15:17 +00:00
parent d9b0e43a9a
commit e8d217a053

View File

@@ -4,6 +4,9 @@
{{ if $Page.Params.categories }} {{ if $Page.Params.categories }}
<header class="article-category"> <header class="article-category">
{{ range ($Page.GetTerms "tags") }} {{ range ($Page.GetTerms "tags") }}
{{ $color := partial "helper/color-from-str" .LinkTitle }}
{{ $BackgroundColor := default $color.BackgroundColor .Params.style.background }}
{{ $TextColor := default $color.TextColor .Params.style.color }}
<a href="{{ .RelPermalink }}" {{ with $Page.Params.style }}style="background-color: {{ .background }}; color: {{ .color }};"{{ end }}> <a href="{{ .RelPermalink }}" {{ with $Page.Params.style }}style="background-color: {{ .background }}; color: {{ .color }};"{{ end }}>
{{ .LinkTitle }} {{ .LinkTitle }}
</a> </a>