Remove special casing for front page; now any landing page can do same

This commit is contained in:
benjamin melançon 2018-11-15 02:29:01 -05:00
parent 2e95e75529
commit 3608816143

View file

@ -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 %}
<section{{ header_section_attributes }}>
{% block header_title %}
{% if page.header %}