breadcrumbs: default to site title for home page #1027

This commit is contained in:
Sören Weber 2025-02-17 19:54:51 +01:00
parent 648b0d249b
commit 00590db6bb
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
2 changed files with 3 additions and 2 deletions

View file

@ -11,9 +11,10 @@
{{- $breadcrumb := slice }}
{{- range seq $depth }}
{{- if $to }}
{{- $title := partial "title.gotmpl" (dict "page" $to "linkTitle" true) }}
{{- if partial "_relearn/pageIsSpecial.gotmpl" $to }}
{{- break }}
{{- else if or $to.Title (eq $to.Kind "taxonomy") (eq $to.Kind "term") }}
{{- else if or $title (eq $to.Kind "taxonomy") (eq $to.Kind "term") }}
{{- $breadcrumb = $breadcrumb | append $to }}
{{- end }}
{{- else }}

View file

@ -1 +1 @@
7.3.2+d8a1e68dd4019f72097d69448711c426309a2138
7.3.2+648b0d249b63bf77788692ad753f8d4a00e14537