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)