From 83d27dd7b2bfdd822a2f95bd84fd63c9cf1a5319 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 14 Jun 2016 02:24:59 +0100 Subject: [PATCH] Update talk page --- source/talks.html.twig | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/source/talks.html.twig b/source/talks.html.twig index d689c75d..5e04f78e 100644 --- a/source/talks.html.twig +++ b/source/talks.html.twig @@ -8,20 +8,24 @@ use: ---

Talks

-

I regularly speak at conferences and user groups about a range of subjects including Drupal, Sculpin and Git. If you would like to me to speak at your group or conference, please get in touch.

+

I regularly speak at conferences and user groups about a range of subjects including Drupal, Sculpin and Git. If you would like to me to speak at your group or conference, please get in touch.

+

There is also information about events that I’ve attended and spoken at on my Lanyrd and Joind.in profiles.

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

Upcoming Talks

{% endif %} {% if talk.date|date('Y') != year %} {% set year = talk.date|date('Y') %} +

{{ year }}

{% endif %} {% set found = false %} {% set year = 0 %} + {% for talk in data.talks if talk.date < now %} {% if loop.first %} {% set found = true %} +

Previous Talks

{% endif %} {% if talk.date|date('Y') != year %} {% set year = talk.date|date('Y') %} +

{{ year }}

{% endif %}