mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
refactored code and introduced a new signal in ArticlesGenerator __init__
This commit is contained in:
parent
575905ac53
commit
48d7df72f1
4 changed files with 18 additions and 22 deletions
|
|
@ -101,6 +101,7 @@ class ArticlesGenerator(Generator):
|
|||
self.categories = defaultdict(list)
|
||||
super(ArticlesGenerator, self).__init__(*args, **kwargs)
|
||||
self.drafts = []
|
||||
signals.article_generator_init.send(self)
|
||||
|
||||
def generate_feeds(self, writer):
|
||||
"""Generate the feeds from the current context, and output files."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue