From 9742a2ebaf1553c3575b9eaf20de84b50aa8e9eb Mon Sep 17 00:00:00 2001 From: Javier Cejudo Date: Wed, 20 Aug 2014 11:34:30 +1000 Subject: [PATCH] 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 --- search.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/search.json b/search.json index ca1542c..3ca4e63 100644 --- a/search.json +++ b/search.json @@ -9,6 +9,6 @@ sitemap: false "url" : "{{ site.url }}{{ post.url }}", "date" : "{{ post.date }}", "shortdate" : "{{ post.date | date: '%B %d, %Y' }}" - } {% if forloop.last %}{% else %},{% endif %} + } {% unless forloop.last %},{% endunless %} {% endfor %} -] \ No newline at end of file +]