diff --git a/source/_includes/podcast/other-episodes.html.twig b/source/_includes/podcast/other-episodes.html.twig new file mode 100644 index 00000000..1a6e2731 --- /dev/null +++ b/source/_includes/podcast/other-episodes.html.twig @@ -0,0 +1,22 @@ +{% set other_episodes = [] %} + +{% for episode in all_episodes %} + {% if episode.guests|first is same as(guest) and episode.topic is not same as(topic) %} + {% set other_episodes = other_episodes|merge([episode]) %} + {% endif %} +{% endfor %} + +{% if other_episodes is not empty %} +
+

Other episodes with {{ guest }}

+ + +
+{% endif %} diff --git a/source/_layouts/podcast_episode.html.twig b/source/_layouts/podcast_episode.html.twig index d9f212e6..dd8c308f 100644 --- a/source/_layouts/podcast_episode.html.twig +++ b/source/_layouts/podcast_episode.html.twig @@ -75,4 +75,12 @@ {% endfor %}