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