Skip to content
Permalink
Browse files

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 185182d032df854e14000fb31b70a9b1a5eca51d
Showing with 4 additions and 1 deletion.
  1. +2 −0 nikola/plugins/command/console.py
  2. +1 −1 nikola/plugins/task/authors.py
  3. +1 −0 nikola/plugins/task/galleries.py
@@ -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'))
@@ -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']:
@@ -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)
@@ -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"

0 comments on commit 185182d

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