patternlibrary/agaric/templates/block/block--highlighted.html.twig
benjamin melançon 96e3c54c7a Sneak container class on here to avoid an extra div
... this is a divergence from Todd's markup and may come back to bite me.
2018-10-20 23:39:50 -04:00

20 lines
486 B
Twig

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