--- layout: default title : Archive permalink: /archive/ ---
{% assign posts_collate = site.posts %} {% for post in posts_collate %} {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %} {% capture this_month %}{{ post.date | date: "%B" }}{% endcapture %} {% capture this_month_num %}{{ post.date | date: "%m" }}{% endcapture %} {% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %} {% capture next_month %}{{ post.previous.date | date: "%B" }}{% endcapture %} {% if forloop.first %}

{{this_year}}

{{this_month}}

{% else %} {% if this_year != next_year %}

{{next_year}}

{{next_month}}

{{next_month}}