diff --git a/source/talks.html b/source/talks.html index 570461f1..d274e0d7 100644 --- a/source/talks.html +++ b/source/talks.html @@ -55,6 +55,7 @@ talks: {% set found = false %} {% set year = '0' %} + {% set new_year = false %} {% for talk in talks|reverse if talk.date >= now %} {% if loop.first %} @@ -62,17 +63,28 @@ talks: {% endif %} {% set this_year %}{{ talk.date|date('Y') }}{% endset %} + {% if this_year != year %} + {% if new_year %} + {# Close the list for the previous year. #} + + {% endif %} + {% set found = true %} {% set year = this_year %}