From b37f01f0e0e255be7a479911446b9e9921c3e205 Mon Sep 17 00:00:00 2001
From: Oliver Davies
Date: Fri, 8 Mar 2019 13:48:58 +0000
Subject: [PATCH] Move podcast data onto the page
---
data/events.yml | 5 -----
source/podcasts.html.twig | 9 ++++++---
2 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/data/events.yml b/data/events.yml
index f63263d97..dabba1028 100644
--- a/data/events.yml
+++ b/data/events.yml
@@ -100,11 +100,6 @@ events:
name: SWDUG
location: Cardiff, UK
- talking_drupal:
- name: Talking Drupal
- location: Online
- url: https://www.talkingdrupal.com
-
umbristol:
name: umBristol
location: Bristol, UK
diff --git a/source/podcasts.html.twig b/source/podcasts.html.twig
index a98e8c594..0094ddfcb 100644
--- a/source/podcasts.html.twig
+++ b/source/podcasts.html.twig
@@ -1,10 +1,13 @@
---
layout: default
title: Podcasts
+podcasts:
+ talking_drupal:
+ name: Talking Drupal
episodes:
- title: 'Episode #175 - Automated Testing'
description: I joined the Talking Drupal team to discuss automated testing.
- event: talking_drupal
+ podcast: talking_drupal
date: 2018-09-05
url: http://talkingdrupal.com/175
---
@@ -14,9 +17,9 @@ episodes:
-->
-
+
{% for episode in page.episodes|reverse %}
- {% set podcast = site.events[episode.event] %}
+ {% set podcast = page.podcasts[episode.podcast] %}
{{ podcast.name }}: {{ episode.title }}