diff --git a/_layouts/post.html b/_layouts/post.html
index b2e5f312..07006b35 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -9,7 +9,7 @@
{{ page.title }}
{{ site.locales[site.default_locale].PostedInCategories }}
{% for cat in page.categories %}
- {{ cat }}
+ {{ cat }}{% unless page.categories.last == cat %}, {% endunless %}
{% endfor %}
{% if page.tags != empty %}
{{ site.locales[site.default_locale].Taggedwith }}
diff --git a/index.html b/index.html
index a32455dc..f7dafa92 100644
--- a/index.html
+++ b/index.html
@@ -15,7 +15,7 @@
{{ site.locales[site.default_locale].PostedInCategories }}
{% for cat in post.categories %}
- {{ cat }}
+ {{ cat }}{% unless post.categories.last == cat%}, {% endunless %}
{% endfor %}
{% if post.tags != empty %}
{{ site.locales[site.default_locale].Taggedwith }}