grav-theme-disroot/templates/modular/2col-left.html.twig

24 lines
831 B
Twig

<div class="two-col" style="background-color:{{ page.header.bgcolor }};">
<div class="two-col-content" style="color:{{ page.header.fontcolor }}; text-align:{{ page.header.text_align }};" >
{% block content %}
{% set colsize = ['six', 'five'] %}
<section id="{{ page.header.section_id }}" class="two-col">
<div class="row">
{% for key, column in page.content|split('<hr />') %}
<div class="{{ colsize[key] }} columns">
{{ column }}
{% if page.header.cloudclients %}
{% if colsize[key] == 'six' %}
{% include 'modular/cloudclients.html.twig' %}
{% endif %}
{% endif %}
</div>
{% endfor %}
</div>
</section>
{% endblock %}
</div>
</div>