From c448dc89359da9e48d1a1908cbe021a3fb1ba68a Mon Sep 17 00:00:00 2001 From: Charlie Tysse Date: Thu, 5 Dec 2024 13:08:39 -0500 Subject: [PATCH] fix: comma inclusion in breadcrumb schema --- layouts/partials/templates/schema_json.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/templates/schema_json.html b/layouts/partials/templates/schema_json.html index dc3bfd6a..64bd30be 100644 --- a/layouts/partials/templates/schema_json.html +++ b/layouts/partials/templates/schema_json.html @@ -49,10 +49,10 @@ {{- end }} {{- /* self-page addition */ -}} - {{- if (ge (len $bc_list) 2) }}, {{end }} + {{- if $bc_list }}, {{end}} { "@type": "ListItem", - "position": {{len $bc_list}}, + "position": {{ add (len $bc_list) 1 }}, "name": {{ .Name }}, "item": {{ .Permalink | safeHTML }} }