Less code than in commit c3b327dbe7

Thank you @budparr and @parkr
This commit is contained in:
pilosus 2014-04-01 17:45:02 +02:00
parent c3b327dbe7
commit 8f9f804b58
2 changed files with 2 additions and 14 deletions

View File

@ -6,13 +6,7 @@
</h2>
<span class="post-category">
<span class="label">
{% for category in post.categories %}
{% if forloop.last %}
{{ category }}
{% else %}
{{ category | append: ', '}}
{% endif %}
{% endfor %}
{{ post.categories | array_to_sentence_string }}
</span>
</span>
<div class="post-meta">

View File

@ -9,13 +9,7 @@ layout: news
</h2>
<span class="post-category">
<span class="label">
{% for category in page.categories %}
{% if forloop.last %}
{{ category }}
{% else %}
{{ category | append: ', '}}
{% endif %}
{% endfor %}
{{ page.categories | array_to_sentence_string }}
</span>
</span>
<div class="post-meta">