From edf4f1f38a6bbae7ade619f6c25eeb9fc628a2ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Tue, 23 Oct 2018 09:53:39 -0400 Subject: [PATCH] Ditch title part of header section for node pages --- agaric/templates/layout/page.html.twig | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/agaric/templates/layout/page.html.twig b/agaric/templates/layout/page.html.twig index ffc39fa..521910c 100644 --- a/agaric/templates/layout/page.html.twig +++ b/agaric/templates/layout/page.html.twig @@ -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 %} + +{# 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 @@ {% endif %} {% endblock header_title %} +{% endif %} + {% block tabs %} {# Drupal tabs #} {% if page.header_tabs %} @@ -74,7 +83,6 @@ {% endif %} {% endblock tabs %} -{% endif %} {% endblock header %}