fix: ensure taxonomy widget title is only linked if a taxonomy page exits (#1314)

fix: ensure taxonomy widget title is only linked if a taxonomy page exists
This commit is contained in:
Jimmy
2026-03-21 12:01:29 +01:00
committed by GitHub
parent cfcdb20d17
commit 8e3687431f
+1 -1
View File
@@ -20,7 +20,7 @@
{{ partial "helper/icon" $icon }}
</div>
<h2 class="widget-title section-title">
{{ if $showLink }}
{{ if and $showLink $taxonomyPage }}
<a href="{{ $taxonomyPage.RelPermalink }}">
{{ $widgetTitle }}
</a>