Include check for paragraphs, fix indent, acknowledge confusion
This commit is contained in:
parent
bfe2161ff3
commit
a0c3132b7d
1 changed files with 11 additions and 5 deletions
|
@ -45,12 +45,18 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<section class="section" data-headerbg="light" }}>
|
<section class="section" data-headerbg="light" }}>
|
||||||
|
<div class="container">
|
||||||
|
{% 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) %}
|
||||||
{{ paragraph }}
|
{{ paragraph }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
{# No, i do not understand why content doesn't print the paragraphs but only
|
||||||
|
content.content does that #}
|
||||||
{{ content }}
|
{{ content }}
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue