From 0d7dae6267b5469c5b38f5bb2f03fc409ee340c1 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 13 Apr 2015 22:30:38 +0100 Subject: [PATCH] Tidier --- source/talks.html.twig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/talks.html.twig b/source/talks.html.twig index 1af53c39..9776a0e3 100644 --- a/source/talks.html.twig +++ b/source/talks.html.twig @@ -66,9 +66,10 @@ talks:

Talks

{% set now = 'now'|date('U') %} +{% set talks = page.talks|reverse %} {% set found = false %} -{% for talk in page.talks|reverse if talk.date >= now %} +{% for talk in talks if talk.date >= now %} {% if loop.first %} {% set found = true %}

Upcoming Talks

@@ -82,7 +83,7 @@ talks: {% endif %} {% set found = false %} -{% for talk in page.talks|reverse if talk.date < now %} +{% for talk in talks if talk.date < now %} {% if loop.first %} {% set found = true %}

Previous Talks