{% extends "base.html.twig" %}
{% block content %}
<div class="main-container w100 plr-1em">
{% macro render_page(page) %}
<li class="pl-10px mb-10px">
<a href="{{ page.url }}">{{ page.title }}</a>
{% if page.children %}
<ul class="pl-10px mt-10px">
{% for child in page.children %}
{{ _self.render_page(child) }}
{% endfor %}
</ul>
{% endif %}
</li>
{% endmacro %}
{% set siteMap = sulu_sitemap() %}
<div class="{% if content.header_img is defined and content.header_img is not empty %}main-title{% else %}small-main-title{% endif %} dflex aic jcc prelative homepage-header mb-40px">
<div class="w100">
<div class="center mb-2em">
<h1>{{ content.page_title }}</h1>
{% if content.chapo is defined and content.chapo is not empty %}
<div>{{ content.chapo|raw }}</div>
{% endif %}
</div>
<div class="mt-80px ml-40per">
<ul>
{{ _self.render_page(siteMap) }}
</ul>
</div>
</div>
</div>
</div>
{% endblock %}