diff --git a/_layouts/post-index.html b/_layouts/post-index.html index 814f7e95..fe030ac2 100644 --- a/_layouts/post-index.html +++ b/_layouts/post-index.html @@ -34,16 +34,13 @@

{{ page.title }}

+ {% capture written_year %}'None'{% endcapture %} {% for post in site.posts %} - {% unless post.next %} -

{{ post.date | date: '%Y' }}

- {% else %} - {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %} - {% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %} - {% if year != nyear %} -

{{ post.date | date: '%Y' }}

- {% endif %} - {% endunless %} + {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %} + {% if year != written_year %} +

{{ year }}

+ {% capture written_year %}{{ year }}{% endcapture %} + {% endif %}
{% if post.link %}

{{ post.title }}