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