Skip to content

Commit 9124931

Browse files
committed
refactor: remove fallback to taxonomy page title for widget display
Because this field always exists. I think it's better to let user customize via widget params
1 parent 4810963 commit 9124931

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

layouts/_partials/widget/taxonomy.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
{{- end -}}
66

77
{{- $taxonomyPage := $taxonomy.Page -}}
8-
98
{{- $limit := default 10 .Params.limit -}}
109
{{- $icon := default .Params.taxonomy .Params.icon -}}
1110
{{- $showLink := default false .Params.showLink -}}
@@ -17,10 +16,10 @@
1716
<h2 class="widget-title section-title">
1817
{{ if $showLink }}
1918
<a href="{{ $taxonomyPage.RelPermalink }}">
20-
{{ default .Params.title $taxonomyPage.Title }}
19+
{{ .Params.title }}
2120
</a>
2221
{{ else }}
23-
{{ default .Params.title $taxonomyPage.Title }}
22+
{{ .Params.title }}
2423
{{ end }}
2524
</h2>
2625

0 commit comments

Comments
 (0)