forked from github/pelican
Add PAGES to the context
This commit is contained in:
parent
e0e62d8b8e
commit
5748a91ad7
2 changed files with 3 additions and 1 deletions
|
|
@ -184,13 +184,13 @@ class PagesGenerator(Generator):
|
|||
self.pages.append(page)
|
||||
|
||||
self._update_context(('pages', ))
|
||||
self.context['PAGES'] = self.pages
|
||||
|
||||
def generate_output(self, writer):
|
||||
templates = self.get_templates()
|
||||
for page in self.pages:
|
||||
writer.write_file('pages/%s' % page.url, templates['page'],
|
||||
self.context, page=page)
|
||||
self._update_context(('pages',))
|
||||
|
||||
|
||||
class StaticGenerator(Generator):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue