From 6c6a7f9ce0a7f2087820907d15835f972fa16205 Mon Sep 17 00:00:00 2001 From: Keunes <11229646+keunes@users.noreply.github.com> Date: Thu, 23 Nov 2023 23:08:34 +0100 Subject: [PATCH] Test: elsif page.title capture block Normally included in head.html. The rest of the title capture blocks don't seem to be an issue. This commit is expected to fail. --- _layouts/redirect.html | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/_layouts/redirect.html b/_layouts/redirect.html index 90c0a258a..08348cce8 100644 --- a/_layouts/redirect.html +++ b/_layouts/redirect.html @@ -1,13 +1,7 @@
- {% if page.layout == "blog" or page.layout == "event" %} - {% capture title %}{{ page.title }} – {{ site.title }}{% endcapture %} - {% elsif page.title %} - Test (elsif problem) - {% else %} - {% capture title %}{{ site.title }} – {% t homepage.header %}{% endcapture %} - {% endif %} +{% capture title %}{% t page.title %} – {{ site.title }}{% endcapture %} {% capture redirect_to %}{% if site.lang != 'en' %}/{{ site.lang }}{% endif %}{{ page.redirect_to }}{% endcapture %}