Ticket #2805: django-3810-sitemap_space_saver.diff.txt

File django-3810-sitemap_space_saver.diff.txt, 1.6 KB (added by md@…, 18 years ago)
Line 
1Index: django/contrib/sitemaps/templates/sitemap.xml
2===================================================================
3--- django/contrib/sitemaps/templates/sitemap.xml (revision 3810)
4+++ django/contrib/sitemaps/templates/sitemap.xml (working copy)
5@@ -1,11 +1,4 @@
6 <?xml version="1.0" encoding="UTF-8"?>
7 <urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
8-{% for url in urlset %}
9- <url>
10- <loc>{{ url.location|escape }}</loc>
11- {% if url.lastmod %}<lastmod>{{ url.lastmod|date:"Y-m-d" }}</lastmod>{% endif %}
12- {% if url.changefreq %}<changefreq>{{ url.changefreq }}</changefreq>{% endif %}
13- {% if url.priority %}<priority>{{ url.priority }}</priority>{% endif %}
14- </url>
15-{% endfor %}
16+{% for url in urlset %}<url><loc>{{ url.location|escape }}</loc>{% if url.lastmod %}<lastmod>{{ url.lastmod|date:"Y-m-d" }}</lastmod>{% endif %}{% if url.changefreq %}<changefreq>{{ url.changefreq }}</changefreq>{% endif %}{% if url.priority %}<priority>{{ url.priority }}</priority>{% endif %}</url>{% endfor %}
17 </urlset>
18Index: django/contrib/sitemaps/templates/sitemap_index.xml
19===================================================================
20--- django/contrib/sitemaps/templates/sitemap_index.xml (revision 3810)
21+++ django/contrib/sitemaps/templates/sitemap_index.xml (working copy)
22@@ -1,8 +1,4 @@
23 <?xml version="1.0" encoding="UTF-8"?>
24 <sitemapindex xmlns="http://www.google.com/schemas/sitemap/0.84">
25-{% for location in sitemaps %}
26- <sitemap>
27- <loc>{{ location|escape }}</loc>
28- </sitemap>
29-{% endfor %}
30+{% for location in sitemaps %}<sitemap><loc>{{ location|escape }}</loc></sitemap>{% endfor %}
31 </sitemapindex>
Back to Top