hide banner from newsroom
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user