Add Podcasts page
This commit is contained in:
parent
7ca27d694e
commit
6c3f0be44d
|
@ -74,6 +74,11 @@ export default {
|
||||||
// href: '/testimonials',
|
// href: '/testimonials',
|
||||||
// pattern: '^/testimonials/?$',
|
// pattern: '^/testimonials/?$',
|
||||||
// },
|
// },
|
||||||
|
{
|
||||||
|
title: 'Podcasts',
|
||||||
|
href: '/podcasts',
|
||||||
|
pattern: '^/podcasts/?',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: 'Book',
|
title: 'Book',
|
||||||
href: '/test-driven-drupal',
|
href: '/test-driven-drupal',
|
||||||
|
|
37
source/podcasts.html.twig
Normal file
37
source/podcasts.html.twig
Normal file
|
@ -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
|
||||||
|
---
|
||||||
|
<!-- <header class="mb-6">
|
||||||
|
<p class="text-lg">
|
||||||
|
I’m an occasional guest on podcasts such as Talking Drupal.
|
||||||
|
</p>
|
||||||
|
</header> -->
|
||||||
|
|
||||||
|
<div>
|
||||||
|
{% for episode in page.episodes|reverse %}
|
||||||
|
{% set podcast = site.events[episode.event] %}
|
||||||
|
|
||||||
|
<article>
|
||||||
|
<h2>{{ podcast.name }}: {{ episode.title }}</h2>
|
||||||
|
|
||||||
|
<time class="text-grey-darker block mt-px mb-2" datetime="{{ episode.date|date('Y-m-d') }}">
|
||||||
|
{{ episode.date|date('jS F Y') }}
|
||||||
|
</time>
|
||||||
|
|
||||||
|
<p>{{ episode.description }}</p>
|
||||||
|
|
||||||
|
<a href="{{ episode.url }}" class="inline-block mt-2 text-sm text-grey-dark hover:text-grey-darker focus:text-grey-darker">
|
||||||
|
View this
|
||||||
|
<span class="visuallyhidden">{{ podcast.name }}</span>
|
||||||
|
episode →
|
||||||
|
</a>
|
||||||
|
</article>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
|
@ -23,14 +23,6 @@ talks:
|
||||||
events:
|
events:
|
||||||
- event: drupal_bristol
|
- event: drupal_bristol
|
||||||
date: 2018-06-27
|
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 %}
|
{% block content %}
|
||||||
<div class="spaced-y-10">
|
<div class="spaced-y-10">
|
||||||
|
|
Reference in a new issue