From f19c4a92d21e368927c9e60c2de784e34891e30d Mon Sep 17 00:00:00 2001 From: ehab-hassan Date: Tue, 9 Sep 2025 12:34:07 +0300 Subject: [PATCH] hide banner from newsroom --- templates/_default/base.html | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/templates/_default/base.html b/templates/_default/base.html index 8153974a0..e288c12e6 100644 --- a/templates/_default/base.html +++ b/templates/_default/base.html @@ -42,11 +42,22 @@ {% include "partials/header.html" %} -
- {% include "partials/banner.html" %} +
+ {# Show banner on all pages except /newsroom paths #} + {% set show_banner = true %} + {% if current_path is defined and current_path is starting_with("/newsroom") %} + {% set show_banner = false %} + {% endif %} + {% if show_banner %} + {% include "partials/banner.html" %} + {% endif %} {% block content %}{% endblock %}
+ + + +
{% include "partials/footer.html" %}