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

57 lines
1.6 KiB
Twig
Raw Normal View History

2016-01-28 21:47:30 +00:00
---
layout: default
nav: talks
title: Talks
meta:
description: 'Information about previous and upcoming talks that Oliver has presented at conferences and user groups'
use:
- talks
---
<h1>Talks</h1>
<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="mailto:{{ site.email }}?subject=Speaking%20enquiry">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>
{% set found = false %}
{% set year = 0 %}
{% set now = 'now'|date_modify('-2 days')|date('U') %}
2016-01-29 10:35:53 +00:00
{% for talk in data.talks|reverse if talk.date >= now %}
2016-01-28 21:47:30 +00:00
{% if loop.first %}
{% set found = true %}
<h2>Upcoming Talks</h2>
{% endif %}
2016-01-29 10:35:53 +00:00
2016-01-28 21:47:30 +00:00
{% if talk.date|date('Y') != year %}
{% set year = talk.date|date('Y') %}
</ul>
<h3>{{ year }}</h3>
<ul>
{% endif %}
{{ include('talk-listing-item') }}
{% endfor %}
{% if found %}
</ul>
{% endif %}
{% set found = false %}
{% set year = 0 %}
{% for talk in data.talks if talk.date < now %}
{% if loop.first %}
{% set found = true %}
<h2>Previous Talks</h2>
{% endif %}
{% if talk.date|date('Y') != year %}
{% set year = talk.date|date('Y') %}
</ul>
<h3>{{ year }}</h3>
<ul>
{% endif %}
{{ include('talk-listing-item') }}
{% endfor %}
{% if found %}
</ul>
{% endif %}