--- layout: page --- {% for post in site.posts %} {% capture year %}{{ post.date | date: "%Y" }}{% endcapture %} {% capture month %}{{ post.date | date: "%B" }}{% endcapture %} {% capture iYear %}{{ post.previous.date | date: "%Y" }}{% endcapture %} {% capture iMonth %}{{ post.previous.date | date: "%B" }}{% endcapture %} {% if forloop.first %}

Year {{ iYear }}

{% else %} {% if year != iYear %}

Year {{ iYear }}