Give wrapping section and div for highlight region blocks

This commit is contained in:
benjamin melançon 2018-10-17 17:49:48 -04:00
parent 41ae557063
commit fe14830f57

View file

@ -0,0 +1,20 @@
{# See "@stable/block/block.html.twig" #}
{%
set classes = [
'hero',
'is-light',
]
%}
{% set attributes = attributes.addClass(classes).addAttribute('data-headerbg', 'light') %}
<section{{ attributes }}>
<div class="hero-body subtitle is-mono is-4">
{{ title_prefix }}
{% if label %}
<h2{{ title_attributes }}>{{ label }}</h2>
{% endif %}
{{ title_suffix }}
{% block content %}
{{ content }}
{% endblock %}
</div>
</section>