breadcrumbs: restore schema hierachy #647

This commit is contained in:
Sören Weber 2023-09-26 22:25:47 +02:00
parent 175b0c8806
commit 451cd0d4db
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -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 }}