--- 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 %} <h2>{{ next_year }}</h2> {% assign this_year = next_year %} {% endif %} <br /> <div class="dynare_home_page_post_box" onclick="location.href='{{ post.url }}';"><h3 class="dynare_home_page_post_title">{{ post.title }}</h3> <span class="dynare_home_page_date">{{ post.date | date_to_long_string }}</span> {{ post.excerpt }} </div> {% endfor %}