diff --git a/app/config/sculpin_site.yml b/app/config/sculpin_site.yml index bcc0c8eab..fe6b0b5cf 100644 --- a/app/config/sculpin_site.yml +++ b/app/config/sculpin_site.yml @@ -44,6 +44,7 @@ events: drupalcamp-london-16: { title: DrupalCamp London 2016, location: 'London, UK', url: ~ } drupalcamp-london-17: { title: DrupalCamp London 2017, location: 'London, UK', url: https://drupalcamp.london } drupalcamp-north-15: { title: DrupalCamp North 2015, location: 'Sunderland, UK', url: http://drupalcampnorth.org } + nomad_php: { title: Nomad PHP, location: Online, url: https://nomadphp.com } nwdug: { title: NWDUG, location: 'Manchester, UK', url: http://nwdrupal.org.uk } phpsc-16: { title: PHP South Coast 2016, location: 'Portsmouth, UK', url: http://2016.phpsouthcoast.co.uk } phpsw: { title: PHPSW, location: 'Bristol, UK', url: https://phpsw.uk } diff --git a/source/_partials/talks-table.twig b/source/_partials/talks-table.twig index 57b72f111..384d9c87d 100644 --- a/source/_partials/talks-table.twig +++ b/source/_partials/talks-table.twig @@ -5,7 +5,7 @@
There is also information about events that I’ve attended and spoken at on my Lanyrd and Joind.in profiles.
-{% set events = [] %} +{% set upcoming_events = [] %} +{% set past_events = [] %} {% for talk in data.talks %} - {% for event in talk.events %} + {% for event in talk.events if event.date >= 'today'|date('Y-m-d') %} {% set event = event|merge({ talk: talk })|merge(site.events[event.id]) %} - {% set events = events|merge([event]) %} + {% set upcoming_events = upcoming_events|merge([event]) %} + {% endfor %} + + {% for event in talk.events if event.date < 'today'|date('Y-m-d') %} + {% set event = event|merge({ talk: talk })|merge(site.events[event.id]) %} + {% set past_events = past_events|merge([event]) %} {% endfor %} {% endfor %} -{% include "talks-table" with { events: events, show_talk: true, reverse_order: true } %} +