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">
<div class="container">
{% 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 %}
{# No, i do not understand why content doesn't print the paragraphs but only
content.content does that #}
<div class="flow_full">
<div class="titlebar titlebar-bigborder content">
<div class="titlebar_title">
<h3 class="subtitle is-mono is-4">Project Details</h3>
</div>
</div>
<div class="columns">
<div class="column">
{{ content.field_case_study_client }}
{{ content.field_case_study_year }}
{{ content.field_case_study_status }}
</div>
<div class="column">
{{ content.field_technologies }}
{{ content.field_services }}
</div>
<div class="column">
{{ content.field_case_study_team }}
{{ content.field_case_study_partners }}
<div class="flow content">
{% 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 %}
{# No, i do not understand why content doesn't print the paragraphs but only
content.content does that #}
<div class="flow_full">
<div class="titlebar titlebar-bigborder content">
<div class="titlebar_title">
<h3 class="subtitle is-mono is-4">Project Details</h3>
</div>
</div>
<div class="columns">
<div class="column">
{{ content.field_case_study_client }}
{{ content.field_case_study_year }}
{{ content.field_case_study_status }}
</div>
<div class="column">
{{ content.field_technologies }}
{{ content.field_services }}
</div>
<div class="column">
{{ content.field_case_study_team }}
{{ content.field_case_study_partners }}
</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>
{{ 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>
</section>