{% assign title=(include.title | default: site.index.title)%} {% if title == blank %}

{{ include.posts | size }} blogs since {{ include.posts | sort: 'date' | map: 'date' | compact | first | date: '%Y' }}

{% else if %}

{{ title }}

{% endif %} {% if site.index.intro != blank %} {{ site.index.intro }} {% endif %} {% if site.index.subtitle != blank %}

{{ site.index.subtitle }}

{% endif %} {% assign prev_year = 'first run' %} {% assign sorted_posts = include.posts | sort: "date" | reverse %} {% for post in sorted_posts %} {% assign current_year = post.date | date: "%Y" %} {% if current_year != prev_year %} {% if prev_year != 'first run' %} {% endif %} {% assign prev_year = current_year %}

{{ current_year | default: 'undated' }}