Include check for paragraphs, fix indent, acknowledge confusion

This commit is contained in:
benjamin melançon 2018-10-24 18:52:50 -04:00
parent bfe2161ff3
commit a0c3132b7d

View file

@ -45,12 +45,18 @@
{% endif %} {% endif %}
<section class="section" data-headerbg="light" }}> <section class="section" data-headerbg="light" }}>
{% for i, paragraph in content.field_body_paragraph if i|first != '#' %} <div class="container">
{% if i is not same as(title_paragraph_index) %} {% if content.field_body_paragraph %}
{{ paragraph }} {% for i, paragraph in content.field_body_paragraph if i|first != '#' %}
{% if i is not same as(title_paragraph_index) %}
{{ paragraph }}
{% endif %}
{% endfor %}
{% endif %} {% endif %}
{% endfor %} {# No, i do not understand why content doesn't print the paragraphs but only
{{ content }} content.content does that #}
{{ content }}
</div>
</section> </section>
{% endif %} {% endif %}