fix: no-redirect #12

Merged
Vezpi merged 3 commits from fix/no-redirect into preview 2026-04-03 14:43:06 +02:00

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>