From 55332b52b56446dc3f0aca98bf5115ab9aa0415d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 6 Aug 2022 01:16:44 +0200 Subject: [PATCH] apparently u cant put blocks inside if statements --- files/templates/home.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/files/templates/home.html b/files/templates/home.html index d45ad0833..a21e23219 100644 --- a/files/templates/home.html +++ b/files/templates/home.html @@ -1,7 +1,8 @@ {% extends "default.html" %} -{% if '/h/' in request.path and sub %} - {% block title %} +{% block title %} + {% if sub %} + {% if sub.bannerurl %} {% set preview = sub.bannerurl %} {% elif sub.sidebarurl %} @@ -30,8 +31,10 @@ {% endif %} - {% endblock %} -{% endif %} + {% else %} + {{super()}} + {% endif %} +{% endblock %} {% block desktopBanner %}