{% for post in site.categories[page.category] %}
{% assign post_year = post.date | date: "%Y" %}
{% if post_year != current_year %}
{% if current_year %}
{% endif %}
{% assign current_year = post_year %}
{{ post_year }}
{% endif %}
{% include theme:archive_post.html %}
{% endfor %}