--- layout: default --- {{ content }}
{%- for post in site.posts -%} {%- assign currentdate = post.date | date: "%Y" -%} {%- if currentdate != date -%} {%- unless forloop.first -%}{% endunless %}

{{ currentdate }}

{% endif %} {% endfor %}