Skip to content
Permalink
Browse files

Avoid rebuild of *all* tags and categories pages and RSS feeds when a…

… tag or category is added or removed.
  • Loading branch information
felixfontein committed Jan 3, 2015
1 parent 6f1bd8a commit de012081b3c2e7d373b921e8adb42605e55a84c5
Showing with 2 additions and 1 deletion.
  1. +2 −1 nikola/plugins/task/tags.py
@@ -84,7 +84,7 @@ def gen_tasks(self):
self.site.scan_posts()
yield self.group_task()

yield self.list_tags_page(kw) # this also adds category and tag list to kw
yield self.list_tags_page(kw)

if not self.site.posts_per_tag and not self.site.posts_per_category:
return
@@ -169,6 +169,7 @@ def _create_tags_page(self, kw, include_tags=True, include_categories=True):
has_tags = (tags != ['']) and include_tags
has_categories = (categories != ['']) and include_categories
template_name = "tags.tmpl"
kw = kw.copy()
if include_tags:
kw['tags'] = tags
if include_categories:

0 comments on commit de01208

Please sign in to comment.
You can’t perform that action at this time.