Debian Codegraph @

django/contrib/sitemaps/templates/sitemap.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
3 {% spaceless %}
4 {% for url in urlset %}
5 <url>
6 <loc>{{ url.location }}</loc>
7 {% if url.lastmod %}<lastmod>{{ url.lastmod|date:"Y-m-d" }}</lastmod>{% endif %}
8 {% if url.changefreq %}<changefreq>{{ url.changefreq }}</changefreq>{% endif %}
9 {% if url.priority %}<priority>{{ url.priority }}</priority>{% endif %}
10 {% for alternate in url.alternates %}
11 <xhtml:link rel="alternate" hreflang="{{ alternate.lang_code }}" href="{{ alternate.location }}"/>
12 {% endfor %}
13 </url>
14 {% endfor %}
15 {% endspaceless %}
16 </urlset>