From c3b327dbe75b36640bd2df6880ecb4b98c2eff8b Mon Sep 17 00:00:00 2001 From: pilosus Date: Tue, 1 Apr 2014 16:04:51 +0200 Subject: [PATCH 1/2] For the case when more than one category specified in the news item, make sure category names formatted nicely with comma delimiter like this: category1, category2. Instead of categor1category2. --- site/_includes/news_item.html | 12 +++++++++--- site/_layouts/news_item.html | 12 +++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/site/_includes/news_item.html b/site/_includes/news_item.html index 08295aa8..a41c66d0 100644 --- a/site/_includes/news_item.html +++ b/site/_includes/news_item.html @@ -5,9 +5,15 @@ - {% for category in post.categories %} - {{ category }} - {% endfor %} + + {% for category in post.categories %} + {% if forloop.last %} + {{ category }} + {% else %} + {{ category | append: ', '}} + {% endif %} + {% endfor %} +