Ditch title part of header section for node pages

This commit is contained in:
benjamin melançon 2018-10-23 09:53:39 -04:00
parent 7b023112f1
commit edf4f1f38a

View file

@ -44,9 +44,16 @@
{% set header_section_attributes = header_section_attributes.removeClass('is-dark').setAttribute('data-headerbg', 'light') %}
{% endif %}
{% if node %}
{% set header_section_attributes = header_section_attributes.removeClass('hero', 'is-dark',b'hero-main', 'is-large').removeAttribute(['data-headerbg', 'style']) %}
{% endif %}
{% block header %}
{% if false %}
<section{{ header_section_attributes }}>
{# We've moved the header section to the content level for nodes #}
{% if not node %}
{% block header_title %}
{% if page.header %}
{# Header hero region #}
@ -63,6 +70,8 @@
</div>
{% endif %}
{% endblock header_title %}
{% endif %}
{% block tabs %}
{# Drupal tabs #}
{% if page.header_tabs %}
@ -74,7 +83,6 @@
{% endif %}
{% endblock tabs %}
</section>
{% endif %}
{% endblock header %}