diff --git a/_includes/_macro/post.html b/_includes/_macro/post.html
index d56ed14455..b14766a41f 100644
--- a/_includes/_macro/post.html
+++ b/_includes/_macro/post.html
@@ -107,7 +107,7 @@
{% assign cat_length = post.categories.size %}
- {% if cat_length > 1 and loop.index != cat_length %}
+ {% if cat_length > 1 and forloop.index != cat_length %}
{{ __.symbol.comma }}
{% endif %}
{% endfor %}