diff --git a/search.json b/search.json index 348c498..b61ffb7 100644 --- a/search.json +++ b/search.json @@ -13,7 +13,8 @@ search: exclude "keywords": "{{page.keywords}}", "url": "{{ page.url | remove: "/"}}", "summary": "{{page.summary | strip }}" -}, +} +{% unless forloop.last and site.posts.size < 1 %},{% endunless %} {% endunless %} {% endfor %} @@ -29,4 +30,4 @@ search: exclude {% unless forloop.last %},{% endunless %} {% endfor %} -] \ No newline at end of file +]