diff --git a/assets/js/components/Navbar.vue b/assets/js/components/Navbar.vue index 17211cfd..b976604b 100644 --- a/assets/js/components/Navbar.vue +++ b/assets/js/components/Navbar.vue @@ -74,6 +74,11 @@ export default { // href: '/testimonials', // pattern: '^/testimonials/?$', // }, + { + title: 'Podcasts', + href: '/podcasts', + pattern: '^/podcasts/?', + }, { title: 'Book', href: '/test-driven-drupal', diff --git a/source/podcasts.html.twig b/source/podcasts.html.twig new file mode 100644 index 00000000..db81d198 --- /dev/null +++ b/source/podcasts.html.twig @@ -0,0 +1,37 @@ +--- +layout: default +title: Podcasts +episodes: + - title: 'Episode #175 - Automated Testing' + description: I joined the Talking Drupal team to discuss automated testing. + event: talking_drupal + date: 2018-09-05 + url: http://talkingdrupal.com/175 +--- + + +
+ {% for episode in page.episodes|reverse %} + {% set podcast = site.events[episode.event] %} + +
+

{{ podcast.name }}: {{ episode.title }}

+ + + +

{{ episode.description }}

+ + + View this + {{ podcast.name }} + episode → + +
+ {% endfor %} +
diff --git a/source/talks.html.twig b/source/talks.html.twig index c633996f..8276d2e9 100644 --- a/source/talks.html.twig +++ b/source/talks.html.twig @@ -23,14 +23,6 @@ talks: events: - event: drupal_bristol date: 2018-06-27 - - - title: 'Episode #175 - Automated Testing' - description: I joined the Talking Drupal team to discuss automated testing. - type: Podcast - url: http://talkingdrupal.com/175 - events: - - event: talking_drupal - date: 2018-09-05 --- {% block content %}