Add wrapping content flow div

This commit is contained in:
benjamin melançon 2018-10-31 19:05:30 -04:00
parent 69ee268a44
commit d7fd7f5c04

View file

@ -46,42 +46,44 @@
<section class="section" data-headerbg="light"> <section class="section" data-headerbg="light">
<div class="container"> <div class="container">
{% if content.field_body_paragraph %} <div class="flow content">
{% for i, paragraph in content.field_body_paragraph if i|first != '#' %} {% if content.field_body_paragraph %}
{% if i is not same as(title_paragraph_index) %} {% for i, paragraph in content.field_body_paragraph if i|first != '#' %}
{{ paragraph }} {% if i is not same as(title_paragraph_index) %}
{% endif %} {{ paragraph }}
{% endfor %} {% endif %}
{% endif %} {% endfor %}
{# No, i do not understand why content doesn't print the paragraphs but only {% endif %}
content.content does that #} {# No, i do not understand why content doesn't print the paragraphs but only
<div class="flow_full"> content.content does that #}
<div class="titlebar titlebar-bigborder content"> <div class="flow_full">
<div class="titlebar_title"> <div class="titlebar titlebar-bigborder content">
<h3 class="subtitle is-mono is-4">Project Details</h3> <div class="titlebar_title">
</div> <h3 class="subtitle is-mono is-4">Project Details</h3>
</div> </div>
<div class="columns"> </div>
<div class="column"> <div class="columns">
{{ content.field_case_study_client }} <div class="column">
{{ content.field_case_study_year }} {{ content.field_case_study_client }}
{{ content.field_case_study_status }} {{ content.field_case_study_year }}
</div> {{ content.field_case_study_status }}
<div class="column"> </div>
{{ content.field_technologies }} <div class="column">
{{ content.field_services }} {{ content.field_technologies }}
</div> {{ content.field_services }}
<div class="column"> </div>
{{ content.field_case_study_team }} <div class="column">
{{ content.field_case_study_partners }} {{ content.field_case_study_team }}
{{ content.field_case_study_partners }}
</div>
</div> </div>
</div> </div>
{{ content|without('content', 'field_body_paragraph',
'field_case_study_client', 'field_case_study_partners', 'field_case_study_status',
'field_case_study_team', 'field_case_study_year', 'field_technologies',
'field_services', 'uid', 'created'
) }}
</div> </div>
{{ content|without('content', 'field_body_paragraph',
'field_case_study_client', 'field_case_study_partners', 'field_case_study_status',
'field_case_study_team', 'field_case_study_year', 'field_technologies',
'field_services', 'uid', 'created'
) }}
</div> </div>
</section> </section>