--- 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 %}

{{ next_year }}

{% assign this_year = next_year %} {% endif %}

{{ post.title }}

{{ post.date | date_to_long_string }} {{ post.excerpt }}
{% endfor %}