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 %} +
diff --git a/site/_layouts/news_item.html b/site/_layouts/news_item.html index a09e545d..96a61a19 100644 --- a/site/_layouts/news_item.html +++ b/site/_layouts/news_item.html @@ -8,9 +8,15 @@ layout: news