clermont-ici: hide nav for child and exclude_from_navigation pages (#55788)

This commit is contained in:
Thomas Jund 2021-09-03 09:36:44 +02:00
parent a134d59175
commit 08cf681565
2 changed files with 14 additions and 1 deletions

View File

@ -113,6 +113,9 @@ h1#logo.has-logo {
//
// NAV
//
body.hide-navigation .site-nav {
display: none;
}
.nav-btn {
display: inline-block;
line-height: 1;

View File

@ -7,6 +7,16 @@
}
}
{% endblock %}
{% block bodyclasses %}
{{ block.super }}
{% if not page.exclude_from_navigation and page.parent is None %}
show-navigation
{% else %}
hide-navigation
{% endif %}
{% endblock %}
{% block content-pre %}
<div class="community-header desktop-only">
{% placeholder "hero-page" name="Image de la Page" %}
@ -28,7 +38,7 @@
{% block menu %}
<h2 class="nav--title">vous êtes :</h2>
{{ block.super }}
{{ block.super }}
{% endblock %}
{% block columns-top %}