Skip to content
Permalink
Browse files
Better setting migration logic
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 2, 2018
1 parent 47478c1 commit 916cf0ddd43015ef52c1bf056bc89ac103668080
Showing with 2 additions and 5 deletions.
  1. +2 −5 nikola/nikola.py
@@ -750,11 +750,8 @@ def __init__(self, **config):

self.config['CATEGORY_DESTPATH_NAMES'] = self.config.get('POSTS_SECTION_NAME', {})

if self.config.get('POSTS_SECTION_FROM_META') is False:
utils.LOGGER.info("Setting CATEGORY_DESTPATH_AS_DEFAULT = True")
self.config['CATEGORY_DESTPATH_AS_DEFAULT'] = True
else:
self.config['CATEGORY_DESTPATH_AS_DEFAULT'] = False
self.config['CATEGORY_DESTPATH_AS_DEFAULT'] = not self.config.get('POSTS_SECTION_FROM_META')
utils.LOGGER.info("Setting CATEGORY_DESTPATH_AS_DEFAULT = " + str(self.config['CATEGORY_DESTPATH_AS_DEFAULT']))

# Handle CONTENT_FOOTER and RSS_COPYRIGHT* properly.
# We provide the arguments to format in CONTENT_FOOTER_FORMATS and RSS_COPYRIGHT_FORMATS.

0 comments on commit 916cf0d

Please sign in to comment.