Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 2be84b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nikola/plugins/task/pages.py
Expand Up @@ -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)))

Expand Down

0 comments on commit 2be84b8

Please sign in to comment.