--- layout: default ---

Archive

{% assign posts = site.posts%} {% for post in posts %} {% if post == posts[0] %}

{{ post.date | date: "%Y" }}


{% else %} {% comment %} Tricky part here, the post order in posts is reverse, but post.next points to 'actual' next post in forward order {% endcomment %} {% assign previous_year = post.next.date | date: "%Y" %} {% assign current_year = post.date | date: "%Y" %} {% if current_year != previous_year %}

{{ current_year }}


{% endif %} {% endif %}

{{ post.date | date: "%b %-d" }} | {{ post.title }}

{% endfor %}