fix: RelPermalink
All checks were successful
Blog Test / Check-Rebuild (push) Successful in 7s
Blog Test / Build (push) Has been skipped
Blog Test / Deploy-Test (push) Successful in 11s
Blog Test / Test (push) Successful in 3s

This commit is contained in:
2026-04-03 12:40:27 +00:00
parent 9a4f91dfbb
commit 3de1290d1c

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 }}" style="background-color: {{ $BackgroundColor | safeCSS }}; color: {{ $TextColor | safeCSS }};"> <a href="{{ $Page.RelPermalink }}" style="background-color: {{ $BackgroundColor | safeCSS }}; color: {{ $TextColor | safeCSS }};">
{{ .LinkTitle }} {{ .LinkTitle }}
</a> </a>
{{ end }} {{ end }}
@@ -16,7 +16,7 @@
<div class="article-title-wrapper"> <div class="article-title-wrapper">
<h2 class="article-title"> <h2 class="article-title">
<a href="{{ .RelPermalink }}"> <a href="{{ $Page.RelPermalink }}">
{{- $Page.Title -}} {{- $Page.Title -}}
</a> </a>
</h2> </h2>