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 %}