Add Drupal Bristol workshop

This commit is contained in:
Oliver Davies 2018-06-05 08:54:26 +01:00
parent a1bf0dcda5
commit 8cc4fecd28
4 changed files with 29 additions and 11 deletions

View file

@ -228,3 +228,6 @@ youtube:
work:
role: Senior Developer
company: microserve
imports:
- '../../data/talks.yml'

15
data/talks.yml Normal file
View file

@ -0,0 +1,15 @@
# Any additional talks or workshops that need to be displayed on the talks
# pages, but do not require their own pages.
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-20' }

View file

@ -3,16 +3,11 @@ layout: page
title: Talk Archive
permalink: talks/archive
use: [talks]
talks:
- title: 'Drupal and the LDAP module'
events:
- { date: '2013-07-10', event: swdug }
- title: 'About the Drupal Association'
events:
- { date: '2014-08-19', event: swdug }
---
<p>Here are a list of my previous conference and user group talks:</p>
{% include "talks-table" with { talks: getPastTalks(data.talks, site.events) } %}
{% include "talks-table" with {
talks: getPastTalks(data.talks|merge(site.talks), site.events),
} %}
<p>Upcoming talks can be found on the <a href="{{ site.url }}/talks" class="link">talks page</a>.</p>

View file

@ -11,9 +11,12 @@ use: [talks]
<div>
<h2>Upcoming Talks</h2>
{% set upcoming_talks = getUpcomingTalks(data.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, upcoming: true } %}
{% include "talks-table" with {
talks: upcoming_talks,
upcoming: true,
} %}
{% else %}
<p>Nothing scheduled at the moment.</p>
{% endif %}
@ -22,7 +25,9 @@ use: [talks]
<div>
<h2>Last 5 Talks</h2>
{% include "talks-table" with { talks: getPastTalks(data.talks, site.events)|slice(0,5) } %}
{% include "talks-table" with {
talks: getPastTalks(data.talks|merge(site.talks), site.events)|slice(0,5),
} %}
<p>All previous talks can be found in the <a href="/talks/archive" class="link">talks archive</a>.</p>
</div>