From 05ba5a763ffa4f8d4ba7eca9d57cac70916cdc72 Mon Sep 17 00:00:00 2001 From: zeeZ Date: Fri, 29 Mar 2024 18:03:11 +0100 Subject: [PATCH] improve breadcrumb schema generation --- layouts/partials/templates/schema_json.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/layouts/partials/templates/schema_json.html b/layouts/partials/templates/schema_json.html index ed4d689b..e53cb0c2 100644 --- a/layouts/partials/templates/schema_json.html +++ b/layouts/partials/templates/schema_json.html @@ -21,6 +21,7 @@ {{- $url := replace .Parent.Permalink ( printf "%s" site.Home.Permalink) "" }} {{- $lang_url := strings.TrimPrefix ( printf "%s/" .Lang) $url }} {{- $bc_list := (split $lang_url "/")}} +{{- $position := 0 }} {{- $scratch := newScratch }}