Change section to div

This is to avoid having sections with no title, such as the main page
body content as the page title is in its own block.
This commit is contained in:
Oliver Davies 2021-03-06 01:17:15 +00:00
parent 0f216a0c01
commit 0b182e4d48

View file

@ -25,7 +25,7 @@
* @see template_preprocess_block() * @see template_preprocess_block()
*/ */
#} #}
<section{{ attributes.addClass('[ block ] [ mt-6 first:mt-0 ]') }}> <div{{ attributes.addClass('[ block ] [ mt-6 first:mt-0 ]') }}>
{{ title_prefix }} {{ title_prefix }}
{% if label %} {% if label %}
<h2{{ title_attributes.addClass('mb-3') }}> <h2{{ title_attributes.addClass('mb-3') }}>
@ -36,4 +36,4 @@
{% block content %} {% block content %}
{{ content }} {{ content }}
{% endblock %} {% endblock %}
</section> </div>