From e1af70b32bb0d166101ccaff9c93523899e2f80f Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 26 Mar 2019 09:08:49 +0000 Subject: [PATCH] Only add a link if there is an episode URL --- source/podcasts.html.twig | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/source/podcasts.html.twig b/source/podcasts.html.twig index deef9cae..d6aeb452 100644 --- a/source/podcasts.html.twig +++ b/source/podcasts.html.twig @@ -25,6 +25,12 @@ episodes: date: 2019-03-08 url: ~ --- +{% macro episodeTitle(podcast, episode) -%} + {{ podcast.name }}: {{ episode.title }} +{%- endmacro %} + +{% import _self as helpers %} +