--- title: News --- {% assign this_year = false %} {% for post in site.posts %} {% capture next_year %}{{post.date | date: "%Y"}}{% endcapture %} {% if this_year == false or this_year != next_year %}