Skip to content
Permalink
Browse files
Move SLUG_AUTHOR_PATH, SLUG_TAG_PATH to ALL_PAGE_DEPENDENCIES
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Apr 17, 2018
1 parent da261b7 commit 9c9580107837f03ecb4f529150fb46ff8454eb2d
Showing with 2 additions and 4 deletions.
  1. +0 −2 docs/template-variables.rst
  2. +2 −2 nikola/nikola.py
@@ -93,8 +93,6 @@ Name Type Descript
``show_blog_title`` bool ``SHOW_BLOG_TITLE`` setting
``show_sourcelink`` bool ``SHOW_SOURCELINK`` setting
``site_has_comments`` bool whether or not a comment system is configured
``SLUG_AUTHOR_PATH`` bool ``SLUG_AUTHOR_PATH`` setting
``SLUG_TAG_PATH`` bool ``SLUG_TAG_PATH`` setting
``social_buttons_code`` TranslatableSetting<str> ``SOCIAL_BUTTONS_CODE`` setting
``sort_posts`` function ``utils.sort_posts`` function
``template_hooks`` dict<str, TemplateHookRegistry> Template hooks registered by plugins
@@ -1089,8 +1089,6 @@ def _set_global_context_from_config(self):
self._GLOBAL_CONTEXT['rel_link'] = self.rel_link
self._GLOBAL_CONTEXT['abs_link'] = self.abs_link
self._GLOBAL_CONTEXT['exists'] = self.file_exists
self._GLOBAL_CONTEXT['SLUG_AUTHOR_PATH'] = self.config['SLUG_AUTHOR_PATH']
self._GLOBAL_CONTEXT['SLUG_TAG_PATH'] = self.config['SLUG_TAG_PATH']
self._GLOBAL_CONTEXT['index_display_post_count'] = self.config[
'INDEX_DISPLAY_POST_COUNT']
self._GLOBAL_CONTEXT['index_file'] = self.config['INDEX_FILE']
@@ -1182,6 +1180,8 @@ def _set_all_page_dependencies_from_config(self):
self.ALL_PAGE_DEPENDENCIES['rss_extension'] = self.config.get('RSS_EXTENSION')
self.ALL_PAGE_DEPENDENCIES['rss_path'] = self.config.get('RSS_PATH')
self.ALL_PAGE_DEPENDENCIES['rss_filename_base'] = self.config.get('RSS_FILENAME_BASE')
self.ALL_PAGE_DEPENDENCIES['slug_author_path'] = self.config.get('SLUG_AUTHOR_PATH')
self.ALL_PAGE_DEPENDENCIES['slug_tag_path'] = self.config.get('SLUG_TAG_PATH')

def _activate_plugins_of_category(self, category):
"""Activate all the plugins of a given category and return them."""

0 comments on commit 9c95801

Please sign in to comment.