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