--- layout: page --- {{ content }} {% if page.collection and page.collection.size > 0 %} {% assign collection = site[page.collection] %} {% if collection and collection.size > 0 %} {% for item in collection reversed %} {% assign current_year = item.started | date: '%Y' %} {% if current_year != year %} {% unless forloop.first %} {% endunless %}

{{ current_year }}

{% endif %} {% endfor %} {% endif %} {% endif %}