<ul>
    {% for page_node in page_nodes %}

        {% set default_url = base_url|default('') ~ '/' ~ page_node.slug %}

        <li style="padding-left: 10px;">
            <a href="{{ page_node.realUrlPath|default( default_url ) }}">
                {{ page_node.title }}
            </a>
            {% if page_node.__children is not empty %}
                {% include 'default/components/sitemap/sitemapNode.html.twig' with {
                    page_nodes: page_node.__children,
                    base_url: default_url,
                } %}
            {% endif %}
        </li>
    {% endfor %}
</ul>