Remove special casing for front page; now any landing page can do same
This commit is contained in:
parent
2e95e75529
commit
3608816143
1 changed files with 3 additions and 8 deletions
|
@ -36,18 +36,13 @@
|
||||||
{% endblock navbar %}
|
{% endblock navbar %}
|
||||||
|
|
||||||
{% set header_section_attributes = create_attribute() %}
|
{% set header_section_attributes = create_attribute() %}
|
||||||
{% if is_front %}
|
{% if not node %}
|
||||||
{# 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 %}
|
|
||||||
{% set header_section_attributes = header_section_attributes.addClass(['hero']).setAttribute('data-headerbg', 'light') %}
|
{% set header_section_attributes = header_section_attributes.addClass(['hero']).setAttribute('data-headerbg', 'light') %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
{% block header %}
|
{% block header %}
|
||||||
{# We've moved the header section to the content level for nodes, with an
|
{# We've moved the header section to the content level for nodes. #}
|
||||||
exception for the front page. #}
|
{% if not node %}
|
||||||
{% if not node or is_front %}
|
|
||||||
<section{{ header_section_attributes }}>
|
<section{{ header_section_attributes }}>
|
||||||
{% block header_title %}
|
{% block header_title %}
|
||||||
{% if page.header %}
|
{% if page.header %}
|
||||||
|
|
Loading…
Reference in a new issue