From bbbad16ef92130cff6db93d3549192dd88f0ea32 Mon Sep 17 00:00:00 2001 From: Chris Warrick Date: Thu, 11 Feb 2016 15:53:45 +0100 Subject: [PATCH] Fix missing context variable Signed-off-by: Chris Warrick --- nikola/plugins/task/indexes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nikola/plugins/task/indexes.py b/nikola/plugins/task/indexes.py index 896d36cae3..79b9f68476 100644 --- a/nikola/plugins/task/indexes.py +++ b/nikola/plugins/task/indexes.py @@ -143,7 +143,7 @@ def cat_path(i, displayed_i, num_pages, force_addition, extension=None): context["pagekind"] = ["section_page"] context["description"] = self.site.config['POSTS_SECTION_DESCRIPTIONS'](lang)[section_slug] if section_slug in self.site.config['POSTS_SECTION_DESCRIPTIONS'](lang) else "" - if kw["posts_section_are_indexes"]: + if self.site.config["POSTS_SECTION_ARE_INDEXES"]: context["pagekind"].append("index") posts_section_title = self.site.config['POSTS_SECTION_TITLE'](lang)