---
sitemap: false
---
[
	{% for post in site.posts %}
		{
		  "title"      : "{{ post.title | escape }}",
		  "category"   : "{{ post.category }}",
		  "url"        : "{{ site.url }}{{ post.url }}",
		  "date"       : "{{ post.date }}",
		  "shortdate"  : "{{ post.date | date: '%B %d, %Y' }}"
		} {% if forloop.last %}{% else %},{% endif %}
	{% endfor %}
]
---
sitemap: false
---
[
	{% for post in site.posts %}
		{
		  "title"      : "{{ post.title | escape }}",
		  "category"   : "{{ post.category }}",
		  "url"        : "{{ site.url }}{{ post.url }}",
		  "date"       : "{{ post.date }}",
		  "shortdate"  : "{{ post.date | date: '%B %d, %Y' }}"
		} {% unless forloop.last %},{% endunless %}
	{% endfor %}
]

Simplify condition for adding comma between posts
Simplify condition for adding comma between posts

This changes was merged in the original repo at https://github.com/christian-fei/Simple-Jekyll-Search/pull/6
