{% comment %}{% endcomment %} {% if site.JB.posts_collate.provider == "custom" %} {% include custom/posts_collate %} {% else %} {% for post in posts_collate %} {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %} {% capture this_month %}{{ post.date | date: "%B" }}{% 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}}