{{c_slug}}

{% if site.categories[page.categories] %} {% for post in site.categories[page.categories] %} {% capture post_year %}{{ post.date | date: '%Y' }}{% endcapture %} {% if forloop.first %}

{{ post_year }}

{% endif %} {% if forloop.first == false %} {% assign previous_index = forloop.index0 | minus: 1 %} {% capture previous_post_year %}{{ site.categories[page.categories][previous_index].date | date: '%Y' }}{% endcapture %} {% if post_year != previous_post_year %}

{{ post_year }}

{% endif %} {% endif %} {% if forloop.last %}
{% endif %} {% endfor %} {% else %}

There are no posts in this categories.

{% endif %}