Re-add talk archive

This commit is contained in:
Oliver Davies 2018-10-09 07:47:13 +01:00
parent 8c339a003c
commit c972b40712
4 changed files with 42 additions and 18 deletions

View file

@ -33,3 +33,4 @@ imports:
- '../../data/companies.yml'
- '../../data/events.yml'
- '../../data/links.yml'
- '../../data/talks.yml'

22
data/talks.yml Normal file
View file

@ -0,0 +1,22 @@
talks:
- title: 'Drupal and the LDAP module'
events:
- event: swdug
date: '2013-07-10'
- title: 'About the Drupal Association'
events:
- event: swdug
date: '2014-08-19'
- title: 'Automated testing with Drupal 8 and PHPUnit'
type: Workshop
events:
- event: drupal_bristol
date: '2018-06-27'
- title: 'Episode #175 - Automated Testing'
type: Podcast
events:
- event: talking_drupal
date: '2018-09-05'

View file

@ -0,0 +1,14 @@
---
layout: default
title: Talks Archive
use: [talks]
---
{% block content %}
<p>Here are most of my previous conference and meetup talks, workshops and podcasts.</p>
{% include "talks-table" with {
talks: getPastTalks(data.talks|merge(site.talks), site.events)
} %}
<p>Upcoming talks can be found on the <a href="/talks" class="link">talks page</a>.</p>
{% endblock %}

View file

@ -4,21 +4,6 @@ title: Talks
meta:
description: 'Information about previous and upcoming talks that Oliver has presented at conferences and user groups'
use: [talks]
talks:
- title: 'Drupal and the LDAP module'
events:
- { event: swdug, date: '2013-07-10' }
- title: 'About the Drupal Association'
events:
- { event: swdug, date: '2014-08-19' }
- title: 'Automated testing with Drupal 8 and PHPUnit'
type: Workshop
events:
- { event: drupal_bristol, date: '2018-06-27' }
- title: 'Episode #175 - Automated Testing'
type: Podcast
events:
- { event: talking_drupal, date: '2018-09-05' }
---
{% block content %}
<p>
@ -29,7 +14,7 @@ talks:
<div class="mb-6">
<h2>Upcoming Talks</h2>
{% set upcoming_talks = getUpcomingTalks(data.talks|merge(page.talks), site.events) %}
{% set upcoming_talks = getUpcomingTalks(data.talks|merge(site.talks), site.events) %}
{% if not upcoming_talks.empty %}
{% include "talks-table" with {
talks: upcoming_talks,
@ -41,10 +26,12 @@ talks:
</div>
<div>
<h2>Past Talks</h2>
<h2>Last 5 Talks</h2>
{% include "talks-table" with {
talks: getPastTalks(data.talks|merge(page.talks), site.events)
talks: getPastTalks(data.talks|merge(site.talks), site.events)|slice(0,5)
} %}
<p>To see more of my previous talks, go to the <a href="/talks/archive" class="link">talks archive</a>.</p>
</div>
{% endblock %}