Skip to content

Commit

Permalink
fix #1784 -- fix listings/index.html path on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwpolska committed Jun 4, 2015
1 parent 803cbb6 commit f7ae41a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/plugins/task/listings.py
Expand Up @@ -256,7 +256,7 @@ def listing_path(self, namep, lang):
else:
utils.LOGGER.error("Unknown listing name {0}!".format(namep))
sys.exit(1)
if not name.endswith('/' + self.site.config["INDEX_FILE"]):
if not name.endswith(os.sep + self.site.config["INDEX_FILE"]):
name += '.html'
path_parts = list(os.path.split(name))
return [_f for _f in path_parts if _f]

0 comments on commit f7ae41a

Please sign in to comment.