fix: comma inclusion in breadcrumb schema

This commit is contained in:
Charlie Tysse 2024-12-05 13:08:39 -05:00
parent 3e53621007
commit c448dc8935
No known key found for this signature in database

View File

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