oliverdavies.uk/source/talks.html.twig

89 lines
2.3 KiB
Twig
Raw Normal View History

2015-04-10 23:21:29 +01:00
---
layout: default
title: Talks
2015-04-11 08:27:27 +01:00
meta:
2015-07-16 01:31:50 +01:00
description: 'Information about previous and upcoming talks that Oliver has presented at conferences and user groups'
2015-08-09 22:06:40 +01:00
use:
- talks
2015-04-11 08:27:27 +01:00
---
2015-07-09 13:52:59 +01:00
{% block body_classes 'page--talks page--talks__list' %}
2015-06-18 17:50:37 +01:00
{% block content %}
2015-07-15 23:45:52 +01:00
<h1>Talks</h1>
2015-07-20 21:25:44 +01:00
2015-08-10 00:20:24 +01: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>
2015-04-11 08:27:27 +01:00
2015-08-10 00:20:24 +01:00
<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>
2015-07-20 21:25:44 +01:00
2015-07-15 23:45:52 +01:00
{% set now = 'now'|date('U') %}
2015-08-09 22:06:40 +01:00
{% set talks = data.talks|reverse %}
2015-04-18 01:30:43 +01:00
2015-07-15 23:45:52 +01:00
{% set found = false %}
2015-07-15 23:59:17 +01:00
{% set year = '0' %}
2015-07-16 01:00:43 +01:00
{% set new_year = false %}
2015-07-16 00:50:12 +01:00
2015-07-15 23:45:52 +01:00
{% for talk in talks|reverse if talk.date >= now %}
{% if loop.first %}
<h2>Upcoming Talks</h2>
{% endif %}
2015-04-11 08:51:43 +01:00
2015-07-15 23:59:17 +01:00
{% set this_year %}{{ talk.date|date('Y') }}{% endset %}
2015-07-16 01:00:43 +01:00
2015-07-15 23:59:17 +01:00
{% if this_year != year %}
2015-07-16 01:00:43 +01:00
{% if new_year %}
{# Close the list for the previous year. #}
</ul>
{% endif %}
2015-07-16 00:50:12 +01:00
{% set found = true %}
2015-07-15 23:59:17 +01:00
{% set year = this_year %}
2015-07-16 00:50:12 +01:00
<h3>{{ this_year }}</h3>
<ul>
2015-07-16 01:00:43 +01:00
{% else %}
{% set new_year = true %}
2015-07-15 23:59:17 +01:00
{% endif %}
2015-08-09 01:37:25 +01:00
{% include 'talk_listing_item' %}
2015-07-15 23:45:52 +01:00
{% endfor %}
2015-07-16 01:00:43 +01:00
{% if found %}
</ul>
{% endif %}
2015-04-11 08:27:27 +01:00
2015-07-15 23:45:52 +01:00
{% set found = false %}
2015-07-16 00:28:04 +01:00
{% set year = '0' %}
2015-07-16 00:50:12 +01:00
{% set new_year = false %}
2015-08-09 22:22:47 +01:00
{% for talk in talks|reverse if talk.date < now %}
2015-07-15 23:45:52 +01:00
{% if loop.first %}
<h2>Previous Talks</h2>
{% endif %}
2015-04-11 09:44:55 +01:00
2015-07-16 00:01:48 +01:00
{% set this_year %}{{ talk.date|date('Y') }}{% endset %}
2015-07-16 00:50:12 +01:00
2015-07-15 23:59:17 +01:00
{% if this_year != year %}
2015-07-16 00:50:12 +01:00
{% if new_year %}
{# Close the list for the previous year. #}
</ul>
{% endif %}
2015-07-15 23:59:17 +01:00
{% set year = this_year %}
2015-07-16 00:50:12 +01:00
{% set found = true %}
<h3>{{ this_year }}</h3>
<ul>
{% else %}
{% set new_year = true %}
2015-07-15 23:59:17 +01:00
{% endif %}
2015-07-16 00:01:48 +01:00
2015-08-09 01:37:25 +01:00
{% include 'talk_listing_item' %}
2015-07-15 23:45:52 +01:00
{% endfor %}
2015-07-16 01:00:43 +01:00
{% if found %}
</ul>
{% endif %}
2015-06-18 17:50:37 +01:00
{% endblock %}