Skip to content

Commit

Permalink
Do classify pages, but don’t classify hidden posts
Browse files Browse the repository at this point in the history
cc @felixfontein

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Mar 25, 2017
1 parent a8ab66e commit 7098b49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nikola/plugins/misc/taxonomies_classifier.py
Expand Up @@ -59,6 +59,10 @@ def _do_classification(self, site):

# Classify posts
for post in site.timeline:
# Do classify pages, but don’t classify posts that are hidden
# (draft/private/future)
if post.is_post and 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

0 comments on commit 7098b49

Please sign in to comment.