Newer
Older
pre-www / src / pages / sitemap.twig
@EcosistemaWebIuav EcosistemaWebIuav on 15 Apr 714 bytes feat: homepage, sitemap, blocco alert,
{% set currentPage = 20 %}

{% set bodyClasses = 'page' %}

{% extends "../layout/page.twig" %}

{% block content %}
    {% for block in post_type.pages[currentPage].blocks %}
        {% include '../blocks/'~block.key~'.twig' with {'block': block } %}
    {% endfor %}

    <div class="grid-container">
        <div class="sitemap-list block-paragraph">
            {% for page in blocks.header.navbar.nav %}
                <div>
                    <a href="{{page.url}}" class="font-bold underline">{{page.name}}</a>
                    {% include "../layout/partials/sitemap-list.twig" with {'pages': page.children} %}
                </div>
            {% endfor %}
        </div>
    </div>


{% endblock %}