Skip to content

Commit 8e36874

Browse files
authored
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
1 parent cfcdb20 commit 8e36874

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

layouts/_partials/widget/taxonomy.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
{{ partial "helper/icon" $icon }}
2121
</div>
2222
<h2 class="widget-title section-title">
23-
{{ if $showLink }}
23+
{{ if and $showLink $taxonomyPage }}
2424
<a href="{{ $taxonomyPage.RelPermalink }}">
2525
{{ $widgetTitle }}
2626
</a>

0 commit comments

Comments
 (0)