Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Forgot some logic.
  • Loading branch information
felixfontein committed Oct 17, 2016
1 parent 99270ee commit 0383099
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nikola/plugins/task/authors.py
Expand Up @@ -57,7 +57,11 @@ def set_site(self, site):

def is_enabled(self, lang=None):
"""Return True if this taxonomy is enabled, or False otherwise."""
return self.site.config["ENABLE_AUTHOR_PAGES"]
if not self.site.config["ENABLE_AUTHOR_PAGES"]:
return False
if lang is not None:
return self.generate_author_pages
return True

def classify(self, post, lang):
"""Classify the given post for the given language."""
Expand Down

0 comments on commit 0383099

Please sign in to comment.