<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for nav_item in nav %}
    {% if nav_item.children %}
        {% for nav_item in nav_item.children %}
    <url>
     <loc>{{ config.site_url }}{{ nav_item.abs_url }}</loc>
     <lastmod>{{nav_item.update_date}}</lastmod>
     <changefreq>daily</changefreq>
    </url>
        {% endfor %}
    {% else %}
    <url>
     <loc>{{ config.site_url }}{{ nav_item.abs_url }}</loc>
     <lastmod>{{nav_item.update_date}}</lastmod>
     <changefreq>daily</changefreq>
    </url>
    {% endif %}
{% endfor %}
</urlset>
