From 73215b3fcdd804647f4806915d9d1063be96b5ca Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 10 Jan 2024 13:00:00 +0000 Subject: [PATCH] Fix meta title on podcast episode pages --- source/_layouts/base.html.twig | 20 +++++++++++--------- source/_layouts/podcast_episode.html.twig | 6 ++++++ 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/source/_layouts/base.html.twig b/source/_layouts/base.html.twig index 3e318e27..0485d305 100644 --- a/source/_layouts/base.html.twig +++ b/source/_layouts/base.html.twig @@ -25,15 +25,17 @@ {% endif %} - {% if page.meta.title %} - {{ page.meta.title }} - - - {% else %} - {{ page.title }} | {{ site.name }} - - - {% endif %} + {% block head_title %} + {% if page.meta.title %} + {{ page.meta.title }} + + + {% else %} + {{ page.title }} | {{ site.name }} + + + {% endif %} + {% endblock %} {% block body %}{% endblock %} diff --git a/source/_layouts/podcast_episode.html.twig b/source/_layouts/podcast_episode.html.twig index 9f63c6a7..631def23 100644 --- a/source/_layouts/podcast_episode.html.twig +++ b/source/_layouts/podcast_episode.html.twig @@ -8,6 +8,12 @@ with {{ page.guests.0 }} {% endblock %} +{% block head_title %} + {{ block('page_title') }} | Beyond Blocks podcast | {{ site.name }} + + +{% endblock %} + {% block content_wrapper %} {% if page.transistor.id %}