layout title default News News {% for post in site.posts %} {% capture currentyear %}{{post.date | date: "%Y"}}{% endcapture %} {% if currentyear != year %} {% unless forloop.first %}{% endunless %} {{ currentyear }} {% capture year %}{{currentyear}}{% endcapture %} {% endif %} {{ post.title }} {% endfor %}