webseite/templates/homepage.html

26 lines
886 B
HTML
Raw Normal View History

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