mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Add a pages_generator_finalized signal.
I wrote a plugin that I'd like to also be able to run on pages in addition to articles. Adding this signal will let me update the content when a page is finished being generated.
This commit is contained in:
parent
d0b291e509
commit
de44644700
3 changed files with 4 additions and 0 deletions
|
|
@ -475,6 +475,8 @@ class PagesGenerator(Generator):
|
|||
self._update_context(('pages', ))
|
||||
self.context['PAGES'] = self.pages
|
||||
|
||||
signals.pages_generator_finalized.send(self)
|
||||
|
||||
def generate_output(self, writer):
|
||||
for page in chain(self.translations, self.pages,
|
||||
self.hidden_translations, self.hidden_pages):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue