1
0
mirror of https://github.com/django/django.git synced 2024-12-29 04:26:28 +00:00
django/tests/sitemaps_tests/templates/custom_sitemap_lastmod_index.xml
David Smith 480191244d Fixed #25916 -- Added lastmod support to sitemap index view.
Co-authored-by: Matthew Downey <matthew.downey@webit.com.au>
2021-10-21 15:26:22 +02:00

15 lines
411 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<!-- This is a customised template -->
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% spaceless %}
{% for site in sitemaps %}
<sitemap>
<loc>{{ site.location }}</loc>
{% if site.last_mod %}
<lastmod>{{ site.last_mod|date:"c" }}</lastmod>
{% endif %}
</sitemap>
{% endfor %}
{% endspaceless %}
</sitemapindex>