webseite/templates/multisection.html

16 lines
548 B
HTML

{% extends "layout.html" %}
{% from "macros/multisection.html" import render_section %}
{% block body %}
{% for child in this.children %}
{% if child._model == 'section' %}
<section class="content {{ loop.cycle('-odd', '-even') }} -columns">
<div class="content__box -columns">
<div class="content__inner_box">
{{ render_section(child) }}
</div>
</div>
</section>
{% endif %}
{% endfor %}
{% endblock %}