From 03830993b7f20db35819bc3e69f743ca1c75c63d Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Mon, 17 Oct 2016 08:29:32 +0200 Subject: [PATCH] Forgot some logic. --- nikola/plugins/task/authors.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nikola/plugins/task/authors.py b/nikola/plugins/task/authors.py index 3186a4528a..57c2594ec8 100644 --- a/nikola/plugins/task/authors.py +++ b/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."""