Skip to content

Commit

Permalink
Move SLUG_AUTHOR_PATH, SLUG_TAG_PATH to ALL_PAGE_DEPENDENCIES
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Apr 17, 2018
1 parent da261b7 commit 9c95801
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions docs/template-variables.rst
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions nikola/nikola.py
Expand Up @@ -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']
Expand Down Expand Up @@ -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."""
Expand Down

0 comments on commit 9c95801

Please sign in to comment.