From 451cd0d4db651237de9846d9ca9d157093248669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Tue, 26 Sep 2023 22:25:47 +0200 Subject: [PATCH] breadcrumbs: restore schema hierachy #647 --- layouts/partials/breadcrumbs.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/partials/breadcrumbs.html b/layouts/partials/breadcrumbs.html index a1cb093266..691124e45d 100644 --- a/layouts/partials/breadcrumbs.html +++ b/layouts/partials/breadcrumbs.html @@ -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 }}