From 36088161438992f61c23e40881f8c875300703f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Thu, 15 Nov 2018 02:29:01 -0500 Subject: [PATCH] Remove special casing for front page; now any landing page can do same --- agaric/templates/layout/page.html.twig | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/agaric/templates/layout/page.html.twig b/agaric/templates/layout/page.html.twig index 266cbad..ef93f0e 100644 --- a/agaric/templates/layout/page.html.twig +++ b/agaric/templates/layout/page.html.twig @@ -36,18 +36,13 @@ {% endblock navbar %} {% set header_section_attributes = create_attribute() %} -{% if is_front %} - {# TODO set a variable for background image so we can use base_path rather than / #} - {% set header_section_attributes = header_section_attributes.addClass(['hero', 'is-dark', 'hero-main', 'is-large']).setAttribute('data-headerbg', 'transparent').setAttribute('style', 'background-image:url(/themes/custom/agarica/patternlibrary/agaric/images/fpo-video-poster.png)') %} -{% elseif not node %} +{% if not node %} {% set header_section_attributes = header_section_attributes.addClass(['hero']).setAttribute('data-headerbg', 'light') %} {% endif %} - {% block header %} -{# 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 %} +{# We've moved the header section to the content level for nodes. #} +{% if not node %} {% block header_title %} {% if page.header %}