Ticket #3033: django-sitemaps.org-2.patch

File django-sitemaps.org-2.patch, 866 bytes (added by Petar Marić <petar.maric@…>, 9 years ago)

Corrected an error in sitemap_index.xml

  • sitemap.xml

     
    11<?xml version="1.0" encoding="UTF-8"?>
    2 <urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
     2<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    33{% spaceless %}
    44{% for url in urlset %}
    55  <url>
  • sitemap_index.xml

     
    11<?xml version="1.0" encoding="UTF-8"?>
    2 <sitemapindex xmlns="http://www.google.com/schemas/sitemap/0.84">
     2<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemapindex/0.9">
    33{% for location in sitemaps %}<sitemap><loc>{{ location|escape }}</loc></sitemap>{% endfor %}
    44</sitemapindex>
Back to Top