Skip to content
Permalink
Browse files

fix #1784 -- fix listings/index.html path on Windows

  • Loading branch information...
Kwpolska committed Jun 4, 2015
1 parent 803cbb6 commit f7ae41ae8b9ad5dc308a7dcae5dd27b8639fdf8c
Showing with 1 addition and 1 deletion.
  1. +1 −1 nikola/plugins/task/listings.py
@@ -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.
You can’t perform that action at this time.