--- layout: default ---
{%- for post in site.posts -%} {%- capture this_year -%}{{ post.date | date: "%Y" }}{%- endcapture -%} {%- capture next_year -%}{{ post.previous.date | date: "%Y" }}{%- endcapture -%} {%- if forloop.first -%}

{{this_year}}

{%- elsif this_year != next_year -%}

{{next_year}}