Remove unwanted divs

This commit is contained in:
benjamin melançon 2018-10-22 18:21:35 -04:00
parent 1b78871334
commit 90cb6799a4

View file

@ -12,9 +12,6 @@
#} #}
{% set bundle = content['#node'].bundle %} {% set bundle = content['#node'].bundle %}
{{ dump(content['#ds_configuration']['layout']) }}
{% set header_section_attributes = create_attribute({'class': ['hero', 'is-dark']}) %} {% set header_section_attributes = create_attribute({'class': ['hero', 'is-dark']}) %}
{% if is_front %} {% if is_front %}
{# TODO set a variable for background image so we can use base_path rather than / #} {# TODO set a variable for background image so we can use base_path rather than / #}
@ -22,9 +19,7 @@
{% endif %} {% endif %}
{% if content %} {% if content %}
<div{{ attributes.addClass(classes) }}> <section{{ attributes header_section_attributes }}>
<div {{ region_attributes.content }}>
<section{{ header_section_attributes }}>
{# Header hero region #} {# Header hero region #}
<div class="hero-body"> <div class="hero-body">
<div class="container"> <div class="container">
@ -33,8 +28,5 @@
</div> </div>
</div> </div>
</div> </div>
</div> {{ content.content }}
{{ content.content }}
</div>
</div>
{% endif %} {% endif %}