Skip to content
Permalink
Browse files

Fix #1890 -- add xmlns:xhtml to sitemap

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 14, 2015
1 parent 5261df2 commit e891eab533418b8560e017a8b2b2bce5bf69450d
Showing with 4 additions and 0 deletions.
  1. +1 −0 CHANGES.txt
  2. +3 −0 nikola/plugins/task/sitemap/__init__.py
@@ -33,6 +33,7 @@ Features
Bugfixes
--------

* Add missing ``xmlns:xhtml`` namespace to sitemaps (Issue #1890)
* Fixed superfluous rebuild problems with Python 3. Note that this will cause
rebuilds for most sites. (Issue #1887)
* Fix links in sample post (Issue #1874)
@@ -42,6 +42,7 @@
urlset_header = """<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
@@ -58,6 +59,7 @@
sitemapindex_header = """<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
@@ -118,6 +120,7 @@ def gen_tasks(self):
"robots_exclusions": self.site.config["ROBOTS_EXCLUSIONS"],
"filters": self.site.config["FILTERS"],
"translations": self.site.config["TRANSLATIONS"],
"sitemap_plugin_revision": 1,
}

output = kw['output_folder']

0 comments on commit e891eab

Please sign in to comment.
You can’t perform that action at this time.