Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixing two bugs.
  • Loading branch information
felixfontein committed Oct 17, 2016
1 parent 9effcfa commit c15e75e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nikola/plugins/misc/taxonomies_classifier.py
Expand Up @@ -55,6 +55,8 @@ def _do_classification(self, site):

# Classify posts
for post in site.timeline:
if not post.use_in_feeds:
continue
for taxonomy in taxonomies:
if taxonomy.apply_to_posts if post.is_post else taxonomy.apply_to_pages:
classifications = {}
Expand Down
6 changes: 6 additions & 0 deletions nikola/plugins/task/indexes.py
Expand Up @@ -85,3 +85,9 @@ def provide_context_and_uptodate(self, classification, lang):
}
kw.update(context)
return context, kw

def postprocess_posts_per_classification(self, posts_per_classification_per_language, flat_hierarchy_per_lang=None, hierarchy_lookup_per_lang=None):
"""Rearrange, modify or otherwise use the list of posts per classification and per language."""
for lang, posts_per_classification in posts_per_classification_per_language.items():
if len(posts_per_classification) == 0:
posts_per_classification[""] = []

0 comments on commit c15e75e

Please sign in to comment.