Only show title on terms pages if it is different than name.

This commit is contained in:
tastytea 2021-03-23 03:01:23 +01:00
parent bf092cc61e
commit a1ff80176c
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@
{{ $count := .Count }}
{{- with $.GetPage (lower .Name) }}
<li>
<a href="{{ .RelPermalink }}"{{ if .Title }} title="{{ .Title }}"{{ end }}>{{ .Name }}</a>
<a href="{{ .RelPermalink }}"{{ if ne .Title .Name }} title="{{ .Title }}"{{ end }}>{{ .Name }}</a>
<span>&#40;{{ $count }}&#41;</span>
</li>
{{- end }}