Prepare header section attributes for toggling between light & dark
This commit is contained in:
parent
012d98d707
commit
86ac90977b
1 changed files with 5 additions and 2 deletions
|
@ -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 #}
|
||||
|
|
Loading…
Reference in a new issue