The cause of this error is in the search.json file. The error occurs when the last page (pages are sorted alphabetically) of site.html_pages has the parameter search: "exclude" and no posts exist. This results in an extra comma. This extra comma causes the json to be incorrectly formatted.
This error can be solved by filtering those pages that are excluded from the search (search: "exclude"). This way, the for loop will only iterate over the pages included in the search and there will be no extra commas.
The cause of this error is in the search.json file. The error occurs when the last page (pages are sorted alphabetically) of site.html_pages has the parameter search: "exclude" and no posts exist. This results in an extra comma. This extra comma causes the json to be incorrectly formatted.
This error can be solved by filtering those pages that are excluded from the search (search: "exclude"). This way, the for loop will only iterate over the pages included in the search and there will be no extra commas.
Closes #221