Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
That only worked in one Py version.
  • Loading branch information
da2x committed Aug 5, 2015
1 parent 62833e9 commit 1d83dca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nikola/plugins/task/sitemap/__init__.py
Expand Up @@ -188,7 +188,8 @@ def scan_locs():
b'<meta content=none name=robots',
b'<meta name=robots content=noindex',
b'<meta name=robots content=none']
if any([robot_directive in filehead.lower().replace('"', '') for robot_directive in robots_directives]):
lowquothead = filehead.lower().decode('utf-8').replace('"', '').encode('utf-8')
if any([robot_directive in lowquothead for robot_directive in robots_directives]):
continue

# put Atom and RSS in sitemapindex[] instead of in urlset[],
Expand Down

0 comments on commit 1d83dca

Please sign in to comment.