From e53bfe514a2c9c84a86e8d52ec48a24691f80dee Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Tue, 16 Feb 2021 18:37:30 +0530 Subject: [PATCH] fix json schema parsing error on pages not having a section --- layouts/partials/templates/schema_json.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/templates/schema_json.html b/layouts/partials/templates/schema_json.html index 6e71082e..9ec5446f 100644 --- a/layouts/partials/templates/schema_json.html +++ b/layouts/partials/templates/schema_json.html @@ -45,7 +45,7 @@ {{- end }} {{- /* self-page addition */ -}} - {{- if $bc_list }}, {{end }} + {{- if (ge (len $bc_list) 2) }}, {{end }} { "@type": "ListItem", "position": {{len $bc_list}},