mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
add signal article_generator_pretaxonomy
invoked before categories and tags lists are created useful when e.g. modifying the list of articles to be generated so that removed articles are not leaked in categories or tags
This commit is contained in:
parent
dcadf33988
commit
22762f2c16
3 changed files with 6 additions and 0 deletions
|
|
@ -421,6 +421,8 @@ class ArticlesGenerator(Generator):
|
|||
|
||||
self.articles, self.translations = process_translations(all_articles)
|
||||
|
||||
signals.article_generator_pretaxonomy.send(self)
|
||||
|
||||
for article in self.articles:
|
||||
# only main articles are listed in categories and tags
|
||||
# not translations
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue