fix: colors
This commit is contained in:
1 parent
d9b0e43a9a
commit
e8d217a053
1 file changed
+3
@@ -4,6 +4,9 @@
|
||||
{{ if $Page.Params.categories }}
|
||||
<header class="article-category">
|
||||
{{ 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 }}>
|
||||
{{ .LinkTitle }}
|
||||
</a>
|
||||
|
||||
Reference in new issue
Block a user