--- layout: default permalink: index.html ---
{% for post in site.posts %} {% unless post.next %}

Year {{ post.date | date: '%Y' }}

{% else %} {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %} {% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %} {% if year != nyear %}

Year {{ post.date | date: '%Y' }}

{% endif %} {% endunless %} {% endfor %}