The content flow walls go up only when needed now

This commit is contained in:
benjamin melançon 2018-11-19 20:20:47 -05:00
parent 52017beec2
commit 2850589004

View file

@ -102,16 +102,24 @@
</section>
{% endif %}
<section class="section" data-headerbg="light">
<div class="container">
<div class="flow content">
{% set bust_out = false %}
{% set busted_out = false %}
{% if content.field_body_paragraph %}
{% for i, paragraph in content.field_body_paragraph if i|first != '#' %}
{% if i is not same as(title_paragraph_index) %}
{% if paragraph.field_style_escape_flow is not empty %}
{% set bust_out = paragraph.field_style_escape_flow %}
{% endif %}
{% if bust_out != true %}
{{ paragraph }}
{% endif %}
{% endfor %}
{% endif %}
<section class="section" data-headerbg="light">
<div class="container">
<div class="flow content">
<!-- Unexpected extra content -->
{{ content|without('field_body_paragraph', 'field_authors', 'uid', 'created') }}
</div>