{%- if sitemapIndexUrls|length -%}
    {%- set urls -%}
        {%- for sitemapUrl in sitemapIndexUrls -%}
            <sitemap>
                <loc>{{ sitemapUrl }}</loc>
                <lastmod>{{ now|date('Y-m-d') }}</lastmod>
            </sitemap>
        {%- endfor -%}
    {%- endset -%}
    <?xml version="1.0" encoding="UTF-8"?>
    <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">{{ urls }}</sitemapindex>
{%- endif -%}