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:
@@ -20,7 +20,7 @@
|
|||||||
{{ partial "helper/icon" $icon }}
|
{{ partial "helper/icon" $icon }}
|
||||||
</div>
|
</div>
|
||||||
<h2 class="widget-title section-title">
|
<h2 class="widget-title section-title">
|
||||||
{{ if $showLink }}
|
{{ if and $showLink $taxonomyPage }}
|
||||||
<a href="{{ $taxonomyPage.RelPermalink }}">
|
<a href="{{ $taxonomyPage.RelPermalink }}">
|
||||||
{{ $widgetTitle }}
|
{{ $widgetTitle }}
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user