diff --git a/agaric/templates/layout/layout--onecol--node.html.twig b/agaric/templates/layout/layout--onecol--node.html.twig index 3df50fa..584ead5 100644 --- a/agaric/templates/layout/layout--onecol--node.html.twig +++ b/agaric/templates/layout/layout--onecol--node.html.twig @@ -45,12 +45,18 @@ {% endif %}
- {% for i, paragraph in content.field_body_paragraph if i|first != '#' %} - {% if i is not same as(title_paragraph_index) %} - {{ paragraph }} +
+ {% 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) %} + {{ paragraph }} + {% endif %} + {% endfor %} {% endif %} - {% endfor %} - {{ content }} + {# No, i do not understand why content doesn't print the paragraphs but only + content.content does that #} + {{ content }} +
{% endif %}