tests/sitemaps_tests/templates/custom_sitemap_lastmod_index.xml
raw| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- This is a customised template --> |
| 3 | <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> |
| 4 | {% spaceless %} |
| 5 | {% for site in sitemaps %} |
| 6 | <sitemap> |
| 7 | <loc>{{ site.location }}</loc> |
| 8 | {% if site.last_mod %} |
| 9 | <lastmod>{{ site.last_mod|date:"c" }}</lastmod> |
| 10 | {% endif %} |
| 11 | </sitemap> |
| 12 | {% endfor %} |
| 13 | {% endspaceless %} |
| 14 | </sitemapindex> |