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.html.twig

87 lines
2.3 KiB
Twig
Raw Normal View History

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