Skip to content

Commit

Permalink
Merge pull request #272 from getnikola/fix-hierarchical-pages
Browse files Browse the repository at this point in the history
Fixes getnikola/nikola#2956 and getnikola/nikola#3073 for hierarchical pages
  • Loading branch information
Kwpolska committed May 4, 2018
2 parents 3dcdeb7 + 6a59957 commit 3ea746a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions v7/hierarchical_pages/hierarchical_pages.py
Expand Up @@ -104,11 +104,11 @@ def scan(self):
if not any([x.startswith('.')
for x in p.split(os.sep)])]

for base_path in full_list:
for base_path in sorted(full_list):
if base_path in seen:
continue
else:
seen.add(base_path)
for lang in self.site.config['TRANSLATIONS'].keys():
seen.add(utils.get_translation_candidate(self.site.config, base_path, lang))
# Extract path
path = utils.os_path_split(os.path.relpath(base_path, dirname))
path[-1] = os.path.splitext(path[-1])[0]
Expand Down

0 comments on commit 3ea746a

Please sign in to comment.