Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix #2419 -- scan posts in gallery plugin
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 31, 2016
1 parent 366376a commit 185182d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions nikola/plugins/command/console.py
Expand Up @@ -84,6 +84,7 @@ def ipython(self, willful=True):
raise e # That’s how _execute knows whether to try something else.
else:
site = self.context['site'] # NOQA
nikola_site = self.context['site'] # NOQA
conf = self.context['conf'] # NOQA
commands = self.context['commands'] # NOQA
IPython.embed(header=self.header.format('IPython'))
Expand Down Expand Up @@ -130,6 +131,7 @@ def _execute(self, options, args):
self.context = {
'conf': self.site.config,
'site': self.site,
'nikola_site': self.site,
'commands': self.site.commands,
}
if options['bpython']:
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/task/authors.py
Expand Up @@ -87,8 +87,8 @@ def gen_tasks(self):
"index_file": self.site.config['INDEX_FILE'],
}

yield self.group_task()
self.site.scan_posts()
yield self.group_task()

if self.generate_author_pages:
yield self.list_authors_page(kw)
Expand Down
1 change: 1 addition & 0 deletions nikola/plugins/task/galleries.py
Expand Up @@ -175,6 +175,7 @@ def gen_tasks(self):
for k, v in self.site.GLOBAL_CONTEXT['template_hooks'].items():
self.kw['||template_hooks|{0}||'.format(k)] = v._items

self.site.scan_posts()
yield self.group_task()

template_name = "gallery.tmpl"
Expand Down

0 comments on commit 185182d

Please sign in to comment.