Do not print header section when no content meant for it
This commit is contained in:
parent
96c9923929
commit
400e817229
1 changed files with 2 additions and 3 deletions
|
@ -45,11 +45,10 @@
|
|||
|
||||
|
||||
{% block header %}
|
||||
<section{{ header_section_attributes }}>
|
||||
|
||||
{# We've moved the header section to the content level for nodes, with an
|
||||
exception for the front page. #}
|
||||
{% if not node or is_front %}
|
||||
<section{{ header_section_attributes }}>
|
||||
{% block header_title %}
|
||||
{% if page.header %}
|
||||
{# Header hero region #}
|
||||
|
@ -66,6 +65,7 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
{% endblock header_title %}
|
||||
</section>
|
||||
{% endif %}
|
||||
|
||||
{% block tabs %}
|
||||
|
@ -78,7 +78,6 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
{% endblock tabs %}
|
||||
</section>
|
||||
{% endblock header %}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue