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
This commit is contained in:
Javier Cejudo 2014-08-20 11:34:30 +10:00
parent fcaae8ae31
commit 9742a2ebaf

View file

@ -9,6 +9,6 @@ sitemap: false
"url" : "{{ site.url }}{{ post.url }}", "url" : "{{ site.url }}{{ post.url }}",
"date" : "{{ post.date }}", "date" : "{{ post.date }}",
"shortdate" : "{{ post.date | date: '%B %d, %Y' }}" "shortdate" : "{{ post.date | date: '%B %d, %Y' }}"
} {% if forloop.last %}{% else %},{% endif %} } {% unless forloop.last %},{% endunless %}
{% endfor %} {% endfor %}
] ]