mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 12:14:52 +08:00
breadcrumbs: default to site title for home page #1027
This commit is contained in:
parent
648b0d249b
commit
00590db6bb
@ -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 }}
|
||||
|
@ -1 +1 @@
|
||||
7.3.2+d8a1e68dd4019f72097d69448711c426309a2138
|
||||
7.3.2+648b0d249b63bf77788692ad753f8d4a00e14537
|
Loading…
x
Reference in New Issue
Block a user