From 7efbc6b84315fb7cda415ac54793f02c46f7cba9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Tue, 16 Oct 2018 18:04:34 -0400 Subject: [PATCH] Set header stylings special to the front page --- agaric/templates/layout/page.html.twig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/agaric/templates/layout/page.html.twig b/agaric/templates/layout/page.html.twig index c965c7c..1703759 100644 --- a/agaric/templates/layout/page.html.twig +++ b/agaric/templates/layout/page.html.twig @@ -36,6 +36,10 @@ {% endblock navbar %} {% set header_section_attributes = create_attribute({'class': ['hero', 'is-dark']}) %} +{% 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-main is-large').setAttribute('data-headerbg', 'transparent').setAttribute('style', 'background-image:url(/themes/custom/agarica/patternlibrary/agaric/images/fpo-video-poster.png)') %} +{% endif %} {% if false %} {% set header_section_attributes = header_section_attributes.removeClass('is-dark').setAttribute('data-headerbg', 'light') %} {% endif %}