From b37f01f0e0e255be7a479911446b9e9921c3e205 Mon Sep 17 00:00:00 2001 From: Oliver Davies <oliver@oliverdavies.uk> 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 f63263d9..dabba102 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 a98e8c59..0094ddfc 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: </p> </header> --> -<div> +<div class="spaced-y-8"> {% for episode in page.episodes|reverse %} - {% set podcast = site.events[episode.event] %} + {% set podcast = page.podcasts[episode.podcast] %} <article> <h2>{{ podcast.name }}: {{ episode.title }}</h2>