From 907585363b986d531bdf13f2a7a403010dbedc26 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 2 Jan 2025 01:49:56 +0000 Subject: [PATCH] Match any podcast guest, not just the first --- source/_includes/podcast/other-episodes.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_includes/podcast/other-episodes.html.twig b/source/_includes/podcast/other-episodes.html.twig index 1a6e2731..ab609f0e 100644 --- a/source/_includes/podcast/other-episodes.html.twig +++ b/source/_includes/podcast/other-episodes.html.twig @@ -1,7 +1,7 @@ {% set other_episodes = [] %} {% for episode in all_episodes %} - {% if episode.guests|first is same as(guest) and episode.topic is not same as(topic) %} + {% if guest in episode.guests and episode.topic is not same as topic %} {% set other_episodes = other_episodes|merge([episode]) %} {% endif %} {% endfor %}