--- title: Archive layout: default permalink: /blog/archive/ --- {% for post in site.posts %} {% assign yearOfPost = post.date | date: "%Y" %} {% if yearOfPost != currentYear %} {% unless forloop.first %}{% endunless %}

{{ yearOfPost }}

{% endif %} {% endfor %}