Skip to content
Permalink
Browse files

Merge pull request #1565 from getnikola/fix_tag_rebuilding

Avoid rebuild of tag/category pages/feeds when tag/category is added/removed.
  • Loading branch information
Kwpolska committed Jan 3, 2015
2 parents 6f1bd8a + de01208 commit 43488088f22c53a0825330138649d54f7654d2ed
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 4348808

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