Skip to content

Commit

Permalink
Fix #1890 -- add xmlns:xhtml to sitemap
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 14, 2015
1 parent 5261df2 commit e891eab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions nikola/plugins/task/sitemap/__init__.py
Expand Up @@ -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">
Expand All @@ -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">
Expand Down Expand Up @@ -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']
Expand Down

0 comments on commit e891eab

Please sign in to comment.