Prepare header section attributes for toggling between light & dark

This commit is contained in:
benjamin melançon 2018-10-16 11:38:58 -04:00
parent 012d98d707
commit 86ac90977b

View file

@ -35,10 +35,13 @@
{% endif %}
{% endblock navbar %}
{% set header_section_attributes = create_attribute() %}
{% set header_section_attributes = create_attribute({'class': ['hero', 'is-dark']) %}
{% if false %}
{% set header_section_attributes = header_section_attributes.removeClass('is-dark').setAttribute('data-headerbg', 'light') %}
{% endif %}
{% block header %}
<section{{ header_section_attributes.addClass(['hero', 'is-dark']) }}>
<section{{ header_section_attributes }}>
{% block header_and_search %}
{% if page.header or page.header_search %}
{# Header hero region + search #}