Set header stylings special to the front page
This commit is contained in:
parent
700529c6ca
commit
7efbc6b843
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,10 @@
|
||||||
{% endblock navbar %}
|
{% endblock navbar %}
|
||||||
|
|
||||||
{% set header_section_attributes = create_attribute({'class': ['hero', 'is-dark']}) %}
|
{% 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 %}
|
{% if false %}
|
||||||
{% set header_section_attributes = header_section_attributes.removeClass('is-dark').setAttribute('data-headerbg', 'light') %}
|
{% set header_section_attributes = header_section_attributes.removeClass('is-dark').setAttribute('data-headerbg', 'light') %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue