This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
oliverdavies.uk-old-sculpin/source/talks.twig

45 lines
1.6 KiB
Twig
Raw Normal View History

2016-01-28 21:47:30 +00:00
---
layout: default
title: Talks
meta:
description: 'Information about previous and upcoming talks that Oliver has presented at conferences and user groups'
2016-12-29 16:32:52 +00:00
use: [talks, posts]
2016-01-28 21:47:30 +00:00
---
<h1>Talks</h1>
2017-03-06 00:25:37 +00:00
<p>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 <a href="/contact/">get in touch</a>.</p>
<p>There is also information about events that Ive attended and spoken at on my <a href="{{ site.lanyrd.url }}">Lanyrd</a> and <a href="{{ site.joindin.url }}">Joind.in</a> profiles.</p>
2017-03-19 09:11:09 +00:00
{% set upcoming_events = [] %}
{% set past_events = [] %}
2016-06-14 01:24:59 +00:00
{% for talk in data.talks %}
2017-03-19 09:11:09 +00:00
{% for event in talk.events if event.date >= 'today'|date('Y-m-d') %}
2017-03-18 07:17:46 +00:00
{% set event = event|merge({ talk: talk })|merge(site.events[event.id]) %}
2017-03-19 09:11:09 +00:00
{% 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 %}
2016-01-28 21:47:30 +00:00
{% if upcoming_events is not empty %}
<h2>Upcoming Talks</h2>
{% include "talks-table" with {
events: upcoming_events|sortbyfield('date'),
hide_feedback: true,
} %}
{% endif %}
2017-03-19 09:11:09 +00:00
<h2>Last 5 Talks</h2>
2017-03-19 09:11:09 +00:00
{% include "talks-table" with {
2017-03-19 11:59:35 +00:00
events: past_events|sortbyfield('date')|reverse[:5]
2017-03-19 09:11:09 +00:00
} %}
<p>You can view more talks in the <a href="/talks/archive">talks archive</a>.</p>