layout default {% for post in site.posts %} {% assign currentYear = post.date | date: "%Y" %} {% if currentYear != year %} {{ currentYear }} {% assign year = currentYear %} {% endif %} {% include post-linking.md %} {% endfor %}