Marke up common block in a good way for Related Content

and probably most anything
This commit is contained in:
benjamin melançon 2018-12-31 23:28:43 -05:00
parent 31c27872f3
commit 39ce0ad308

View file

@ -25,13 +25,23 @@
* @see template_preprocess_block() * @see template_preprocess_block()
*/ */
#} #}
<div{{ attributes }}> <section {{ attributes }}.addClass('section'>
{{ title_prefix }} <div class="container">
{% if label %} <div class="frow content">
<h2{{ title_attributes }}>{{ label }}</h2> <div class="flow_full">
{% endif %} {{ title_prefix }}
{{ title_suffix }} {% if label %}
{% block content %} <div class="titlebar titlebar-bigborder content">
{{ content }} <div class="titlebar_title">
{% endblock %} <h3{{ title_attributes }}.addClass(['subtitle', 'is-mono', 'is-4']>{{ label }}</h3>
</div> </div>
</div>
{% endif %}
{{ title_suffix }}
{% block content %}
{{ content }}
{% endblock %}
</div>
</div>
</div>
</section>