Ticket #3033: django-sitemaps.org.patch

File django-sitemaps.org.patch, 1.0 KB (added by Petar Marić <petar.maric@…>, 18 years ago)

Patch for the new sitemaps protocol

  • django/contrib/sitemaps/templates/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>
  • django/contrib/sitemaps/templates/sitemap_index.xml

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