Group talks by type

This commit is contained in:
Oliver Davies 2015-12-31 10:39:35 +00:00
parent b6609a5f60
commit 2d2cb25023
5 changed files with 31 additions and 23 deletions

View file

@ -0,0 +1,6 @@
<li>
{{ talk.event.name }} -
<a href="{{ talk.url }}">
{{ talk.title }}
</a>
</li>

View file

@ -0,0 +1,5 @@
<ul>
{% for talk in talks if talk.type == type %}
{{ include('talk-list-item') }}
{% endfor %}
</ul>

View file

@ -1,6 +0,0 @@
{{ talk.event.name }} -
{% if talk.fuzzy_date %}
{{ talk.title }}
{% else %}
<a href="{{ talk.url }}">{{ talk.title }}</a>
{% endif %}

20
source/talks.html.twig Normal file
View file

@ -0,0 +1,20 @@
---
layout: page
nav: talks
title: Talks
meta:
description: 'Information about previous and upcoming talks that Oliver has presented at conferences and user groups'
use:
- talks
---
<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>
<h2>Conferences</h2>
{{ include('talk-list', { talks: data.talks, type: 'conference' }) }}
<h2>User groups</h2>
{{ include('talk-list', { talks: data.talks, type: 'meetup' }) }}

View file

@ -1,17 +0,0 @@
---
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
---
# Talks
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>.
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.
{{ include('upcoming-talks') }}
{{ include('previous-talks') }}