Skip to content
Permalink
Browse files
Don’t rebuild all pages if DISABLE_INDEXES setting changes
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Apr 15, 2018
1 parent 90c2e4a commit 2be84b8dc0545a88c76fc1caec489ab743ad7b72
Showing with 1 addition and 2 deletions.
  1. +1 −2 nikola/plugins/task/pages.py
@@ -45,14 +45,13 @@ def gen_tasks(self):
"filters": self.site.config["FILTERS"],
"show_untranslated_posts": self.site.config['SHOW_UNTRANSLATED_POSTS'],
"demote_headers": self.site.config['DEMOTE_HEADERS'],
"disable_indexes": self.site.config["DISABLE_INDEXES_PLUGIN_INDEX_AND_ATOM_FEED"],
}
self.site.scan_posts()
yield self.group_task()
index_paths = {}
for lang in kw["translations"]:
index_paths[lang] = False
if not kw["disable_indexes"]:
if not self.site.config["DISABLE_INDEXES_PLUGIN_INDEX_AND_ATOM_FEED"]:
index_paths[lang] = os.path.normpath(os.path.join(self.site.config['OUTPUT_FOLDER'],
self.site.path('index', '', lang=lang)))

0 comments on commit 2be84b8

Please sign in to comment.