hide banner from newsroom

This commit is contained in:
2025-09-09 12:34:07 +03:00
parent 11f566b3a0
commit f19c4a92d2

View File

@@ -42,11 +42,22 @@
<!-- End Twitter universal website tag code --> <!-- End Twitter universal website tag code -->
{% include "partials/header.html" %} {% include "partials/header.html" %}
<div id="content" class="px-4 lg:px-0 pt-12 mt-4 overflow-hidden"> <div id="content" class="px-4 lg:px-0 pt-12 mt-4 overflow-hidden">
{% 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 %} {% block content %}{% endblock %}
</div> </div>
<div class="px-4 md:px-8 overflow-hidden"> <div class="px-4 md:px-8 overflow-hidden">
{% include "partials/footer.html" %} {% include "partials/footer.html" %}
</div> </div>