This commit is contained in:
Oliver Davies 2015-04-13 22:30:38 +01:00
parent 3f65f2ef14
commit 0d7dae6267

View file

@ -66,9 +66,10 @@ talks:
<h1>Talks</h1> <h1>Talks</h1>
{% set now = 'now'|date('U') %} {% set now = 'now'|date('U') %}
{% set talks = page.talks|reverse %}
{% set found = false %} {% set found = false %}
{% for talk in page.talks|reverse if talk.date >= now %} {% for talk in talks if talk.date >= now %}
{% if loop.first %} {% if loop.first %}
{% set found = true %} {% set found = true %}
<h2>Upcoming Talks</h2> <h2>Upcoming Talks</h2>
@ -82,7 +83,7 @@ talks:
{% endif %} {% endif %}
{% set found = false %} {% set found = false %}
{% for talk in page.talks|reverse if talk.date < now %} {% for talk in talks if talk.date < now %}
{% if loop.first %} {% if loop.first %}
{% set found = true %} {% set found = true %}
<h2>Previous Talks</h2> <h2>Previous Talks</h2>