Skip to content

Commit

Permalink
Similar fix to getnikola/nikola#3072.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed May 4, 2018
1 parent 3dcdeb7 commit 6a59957
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 6a59957

Please sign in to comment.