Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix #1785
  • Loading branch information
Kwpolska committed Jun 4, 2015
1 parent f7ae41a commit 5fd5478
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions nikola/plugins/task/galleries.py
Expand Up @@ -124,18 +124,18 @@ def _find_gallery_path(self, name):
def gallery_path(self, name, lang):
gallery_path = self._find_gallery_path(name)
return [_f for _f in [self.site.config['TRANSLATIONS'][lang]] +
list(os.path.split(gallery_path)) +
gallery_path.split(os.sep) +
[self.site.config['INDEX_FILE']] if _f]

def gallery_global_path(self, name, lang):
gallery_path = self._find_gallery_path(name)
return [_f for _f in list(os.path.split(gallery_path)) +
return [_f for _f in gallery_path.split(os.sep) +
[self.site.config['INDEX_FILE']] if _f]

def gallery_rss_path(self, name, lang):
gallery_path = self._find_gallery_path(name)
return [_f for _f in [self.site.config['TRANSLATIONS'][lang]] +
list(os.path.split(gallery_path)) +
gallery_path.split(os.sep) +
['rss.xml'] if _f]

def gen_tasks(self):
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/task/listings.py
Expand Up @@ -258,5 +258,5 @@ def listing_path(self, namep, lang):
sys.exit(1)
if not name.endswith(os.sep + self.site.config["INDEX_FILE"]):
name += '.html'
path_parts = list(os.path.split(name))
path_parts = name.split(os.sep)
return [_f for _f in path_parts if _f]

0 comments on commit 5fd5478

Please sign in to comment.