From 8f9f804b58d08daf6423d5ba74eee197d28c88ba Mon Sep 17 00:00:00 2001 From: pilosus Date: Tue, 1 Apr 2014 17:45:02 +0200 Subject: [PATCH] Less code than in commit c3b327dbe75b36640bd2df6880ecb4b98c2eff8b Thank you @budparr and @parkr --- site/_includes/news_item.html | 8 +------- site/_layouts/news_item.html | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/site/_includes/news_item.html b/site/_includes/news_item.html index a41c66d0..60245d63 100644 --- a/site/_includes/news_item.html +++ b/site/_includes/news_item.html @@ -6,13 +6,7 @@ - {% for category in post.categories %} - {% if forloop.last %} - {{ category }} - {% else %} - {{ category | append: ', '}} - {% endif %} - {% endfor %} + {{ post.categories | array_to_sentence_string }}
diff --git a/site/_layouts/news_item.html b/site/_layouts/news_item.html index 96a61a19..6d27976a 100644 --- a/site/_layouts/news_item.html +++ b/site/_layouts/news_item.html @@ -9,13 +9,7 @@ layout: news