Reverse the order for upcoming talks

This commit is contained in:
Oliver Davies 2016-01-29 10:35:53 +00:00
parent 7eec6675ee
commit 14ce792f2d

View file

@ -15,7 +15,7 @@ use:
{% set found = false %} {% set found = false %}
{% set year = 0 %} {% set year = 0 %}
{% set now = 'now'|date_modify('-2 days')|date('U') %} {% set now = 'now'|date_modify('-2 days')|date('U') %}
{% for talk in data.talks if talk.date >= now %} {% for talk in data.talks|reverse if talk.date >= now %}
{% if loop.first %} {% if loop.first %}
{% set found = true %} {% set found = true %}
<h2>Upcoming Talks</h2> <h2>Upcoming Talks</h2>