{% assign title=include.title %} {% if title != blank %}

{{ title }}

{% else %}

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

{% endif %} {% assign prev_year = 'first run' %} {% assign sorted_posts = include.posts | sort: "date" | reverse %} {% assign pinned_posts=sorted_posts | where: "pinned", 1 %} {% if pinned_posts.size > 0 %} {% endif %} {% 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' }}