Debian Codegraph @

tests/sitemaps_tests/templates/custom_sitemap.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- This is a customised template -->
3 <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
4 {% spaceless %}
5 {% for url in urlset %}
6 <url>
7 <loc>{{ url.location }}</loc>
8 {% if url.lastmod %}<lastmod>{{ url.lastmod|date:"Y-m-d" }}</lastmod>{% endif %}
9 {% if url.changefreq %}<changefreq>{{ url.changefreq }}</changefreq>{% endif %}
10 {% if url.priority %}<priority>{{ url.priority }}</priority>{% endif %}
11 </url>
12 {% endfor %}
13 {% endspaceless %}
14 </urlset>