<commit_before>{% extends "ClientWebsiteBundle:views:master.html.twig" %}

{% block meta %}{% include "ClientWebsiteBundle:blocks:meta.html.twig" %}{% endblock %}

{% block title %}{{ content.title }}{% endblock %}

{% macro recursiveSitemap(site) %}
    <li>
        <a href="{{ content_path(site) }}">{{ site.title }}</a>

        {% if site.children is defined %}
            <ul>
                {% for subSite in site.children %}
                    {{ _self.recursiveSitemap(subSite) }}
                {% endfor %}
            </ul>
        {% endif %}
    </li>
{% endmacro %}

{% block content %}
    <div id="content">
        <div vocab="http://schema.org/" typeof="Content">
            <h1 class="page-header" property="title">{{ content.title }}</h1>

            <ul>
                {% for site in sitemap(content) %}
                    {{ _self.recursiveSitemap(site) }}
                {% endfor %}
            </ul>
        </div>
    </div>
{% endblock %}<commit_msg>fixed sitemap html generation<commit_after>{% extends "ClientWebsiteBundle:views:master.html.twig" %}

{% block meta %}{% include "ClientWebsiteBundle:blocks:meta.html.twig" %}{% endblock %}

{% block title %}{{ content.title }}{% endblock %}

{% macro recursiveSitemap(site) %}
    <li>
        <a href="{{ content_path(site) }}">{{ site.title }}</a>

        {% if site.children is defined %}
            <ul>
                {% for subSite in site.children %}
                    {{ _self.recursiveSitemap(subSite) }}
                {% endfor %}
            </ul>
        {% endif %}
    </li>
{% endmacro %}

{% block content %}
    <div id="content">
        <div vocab="http://schema.org/" typeof="Content">
            <h1 class="page-header" property="title">{{ content.title }}</h1>

            <ul>
                {{ _self.recursiveSitemap(sitemap(content)) }}
            </ul>
        </div>
    </div>
{% endblock %}
{'fraction_non_alphanumeric': 0.18229166666666666, 'fraction_numerical': 0.0020833333333333333, 'mean_word_length': 2.0062597809076683, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6893179', 'n_tokens_mistral': 649, 'n_tokens_neox': 574, 'n_words': 114}