mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-02-21 11:10:07 +00:00
breadcrumbs: default to site title for home page #1027
This commit is contained in:
parent
648b0d249b
commit
00590db6bb
2 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue