Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 de01208
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nikola/plugins/task/tags.py
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit de01208

Please sign in to comment.