Skip to content

Commit

Permalink
.htm is possible too
Browse files Browse the repository at this point in the history
  • Loading branch information
da2x committed Oct 23, 2013
1 parent da0ac83 commit d93a0e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/plugins/task/sitemap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def scan_locs():
if path.endswith(kw['index_file']) and kw['strip_indexes']:
# ignore index files when stripping urls
continue
if path.endswith('.html'):
if path.endswith('.html') or path.endswith('.htm'):
if not u'<!doctype html' in codecs.open(real_path, 'r', 'utf8').read(1024).lower():
# ignores "html" files without doctype
# alexa-verify, google-site-verification, etc.
Expand Down

0 comments on commit d93a0e0

Please sign in to comment.