{% if include.param == 'post' %}
{% assign curr_size = site.categories[page.category] | size %}
{% unless curr_size > 0 %}
{% assign word = page.category %}
{% localize no_related_post %} {% localize word %}
{% endunless %}
{% endif %}
{% if include.param != 'post' %}
{% if include.param == 'main' %}
{% endif %}
{% else %}
{% if curr_size > 0 %}
{% assign posts = site.categories[page.category] | sort:"date" | reverse %}
{% for post in posts %}
-
{% endfor %}
{% endif %}
{% endif %}