Skip to content

Commit

Permalink
Forgot postprocessing...
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Oct 16, 2016
1 parent 7899a3c commit 2d0d6c6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nikola/plugins/misc/taxonomies_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,15 @@ def create_hierarchy(cat_hierarchy, parent=None):
else:
taxonomy.postprocess_posts_per_classification(self.site.posts_per_classification[taxonomy.classification_name], flat_hierarchy, hierarchy_lookup)

# Postprocessing
for taxonomy in taxonomies:
for lang, posts_per_classification in self.site.posts_per_classification[taxonomy.classification_name].items():
taxonomy.postprocess_posts_per_classification(
posts_per_classification,
self.site.flat_hierarchy_per_classification.get(taxonomy.classification_name, {}).get(lang, None),
self.site.hierarchy_lookup_per_classification.get(taxonomy.classification_name, {}).get(lang, None),
)

def _postprocess_path(self, path, lang, force_extension=None):
if force_extension is not None:
if len(path) == 0:
Expand Down

0 comments on commit 2d0d6c6

Please sign in to comment.