{% set currentPage = 10 %}
{% set paths_base = '../..' %}

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

{% block content %}

    {% set breadcrumbs_block = 
        {
            "key": "breadcrumbs",
            "post_type": "pages",
            "parents": false
        }
    %}
    {% include '../blocks/breadcrumbs.twig' with {'block': breadcrumbs_block } %}

    <div class="grid-container">
        {% for item in blocks.header.navbar.nav[1].children %}
            <div class="block-container block-composition block-composition-links-list">            
                {% set section_title = {
                    "key": "title",
                    "classes": "block-title--sm block-title--divider",
                    "tag": "h2",
                    "content": {
                        "title": item.name,
                        "link": {
                            "label": "Vai alla pagina",
                            "url": item.url
                        }
                    }
                } %}
                {% include '../blocks/title.twig' with {'block': section_title } %}

                {% set section_links = {
                    "key": "links-list",
                    "classes": "block-links-list--1col",
                    "links_size": "sm",
                    "content": {
                        "list": item.children
                    }
                } %}
                {% include '../blocks/links-list.twig' with {'block': section_links } %}
            </div>

        {% endfor %}
    </div>


{% endblock %}