Skip to content
Permalink
Browse files

Forgot some logic.

  • Loading branch information
felixfontein committed Oct 17, 2016
1 parent 99270ee commit 03830993b7f20db35819bc3e69f743ca1c75c63d
Showing with 5 additions and 1 deletion.
  1. +5 −1 nikola/plugins/task/authors.py
@@ -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."""

0 comments on commit 0383099

Please sign in to comment.