clermont-ici: hide nav for child and exclude_from_navigation pages (#55788)
This commit is contained in:
parent
a134d59175
commit
08cf681565
|
@ -113,6 +113,9 @@ h1#logo.has-logo {
|
|||
//
|
||||
// NAV
|
||||
//
|
||||
body.hide-navigation .site-nav {
|
||||
display: none;
|
||||
}
|
||||
.nav-btn {
|
||||
display: inline-block;
|
||||
line-height: 1;
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue