{% extends 'base.html.twig' %}

{% set pageTitle = "sitemap"|trans|title %}

{% block stylesheets %}
    <link rel="stylesheet" href="{{asset('styles/sitemap.css')}}"></link>
{% endblock %}

{% block content %}

    {% include "components/_intro.html.twig" with {options: {
        title: "sitemap"|trans|title,
        description: false,
        skip: false,
        img: false,
        bg: false
    }} %}
    <div class="section-wrapper">
        <div class="content-section">
            <ul class="sitemap-wrapper">
                {% for url in urls %}
                    <div class="site-item">

                        {% if url.inline is defined %}
                            <div class="marker"></div>
                        {% endif %}

                        {% if url.trans is defined and not url.trans %}
                            {% set title = url['title'] %}
                        {% else %}
                            {% set title = url['title']|trans %}
                        {% endif %}
                        <a href="{{ url['loc'] }}">{{ title }}</a>
                    </div>
                {% endfor %}
            </ul>
        </div>
    </div>
{% endblock %}