mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00:24 +00:00
breadcrumbs: restore schema hierachy #647
This commit is contained in:
parent
175b0c8806
commit
451cd0d4db
1 changed files with 2 additions and 0 deletions
|
@ -27,8 +27,10 @@
|
|||
{{- range seq $len }}
|
||||
{{- $breadcrumbReversed = $breadcrumbReversed | append (index $breadcrumb (sub $len .)) }}
|
||||
{{- end }}
|
||||
{{- $depth := 0 }}
|
||||
{{- range $i, $e := $breadcrumbReversed }}
|
||||
{{- $to := $e }}
|
||||
{{- $depth = add $depth 1 }}
|
||||
{{- $title := $to.Title }}
|
||||
{{- if eq .Kind "taxonomy" }}
|
||||
{{- $title = i18n $to.Data.Plural }}
|
||||
|
|
Loading…
Reference in a new issue