app/django/contrib/sitemaps/templates/sitemap.xml
changeset 323 ff1a9aa48cfd
parent 54 03e267d67478
equal deleted inserted replaced
322:6641e941ef1e 323:ff1a9aa48cfd
     1 {% autoescape off %}<?xml version="1.0" encoding="UTF-8"?>
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
     2 <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
     3 {% spaceless %}
     3 {% spaceless %}
     4 {% for url in urlset %}
     4 {% for url in urlset %}
     5   <url>
     5   <url>
     6     <loc>{{ url.location|escape }}</loc>
     6     <loc>{{ url.location }}</loc>
     7     {% if url.lastmod %}<lastmod>{{ url.lastmod|date:"Y-m-d" }}</lastmod>{% endif %}
     7     {% if url.lastmod %}<lastmod>{{ url.lastmod|date:"Y-m-d" }}</lastmod>{% endif %}
     8     {% if url.changefreq %}<changefreq>{{ url.changefreq }}</changefreq>{% endif %}
     8     {% if url.changefreq %}<changefreq>{{ url.changefreq }}</changefreq>{% endif %}
     9     {% if url.priority %}<priority>{{ url.priority }}</priority>{% endif %}
     9     {% if url.priority %}<priority>{{ url.priority }}</priority>{% endif %}
    10    </url>
    10    </url>
    11 {% endfor %}
    11 {% endfor %}
    12 {% endspaceless %}
    12 {% endspaceless %}
    13 </urlset>
    13 </urlset>
    14 {% endautoescape %}