oliverdavies.uk/source/talks.html

66 lines
1.9 KiB
HTML

---
layout: default
title: Talks
meta:
description: 'Information about previous and upcoming talks that Oliver has presented at conferences and user groups'
talks:
- title: So, what is this Drupal thing?
date: 2012-09-05
location: unified.diff
- title: Drupal LDAP module
date: 2013-07-10
location: SWDUG
- title: Test Drive Twig with Sculpin
date: 2015-07-24
location: DrupalCamp North 2015
- title: Sculpin
date: 2015-08-21
location: unified.diff
---
{% block body_classes 'page--talks page--talks__list' %}
{% block content %}
<h1>Talks</h1>
<p>I regularly speak at conferences and user groups about a range of subjects relating to Drupal, PHP and web development. If you would like to me to speak at your group or conference, please <a href="/contact/">get in touch</a>.</p>
{% set now = 'now'|date('U') %}
{% set talks = page.talks|reverse %}
{% set found = false %}
{% set year = '0' %}
{% for talk in talks|reverse if talk.date >= now %}
{% set found = true %}
{% if loop.first %}
<h2>Upcoming Talks</h2>
{% endif %}
{% set this_year %}{{ talk.date|date('Y') }}{% endset %}
{% if this_year != year %}
<h3>{{ this_year }}</h3>
{% set year = this_year %}
{% endif %}
{{ talk.title }}<br>
<!--{% include 'talk-listing-item' %}-->
{% endfor %}
{% if found %}
</ul>
{% endif %}
{% set found = false %}
{% for talk in talks if talk.date < now %}
{% if loop.first %}
<h2>Previous Talks</h2>
{% endif %}
{% set this_year %}{{ talk.date|date('Y') }}{% endset %}
{% if this_year != year %}
<h3>{{ this_year }}</h3>
{% set year = this_year %}
{% endif %}
{{ talk.title }}<br>
<!-- {% include 'talk-listing-item' %} -->
{% endfor %}
{% endblock %}