mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Provide 'all_articles' variable to period pages
This allows 'recent posts' functionality to work properly.
This commit is contained in:
parent
de71f39232
commit
8520840be6
2 changed files with 7 additions and 4 deletions
|
|
@ -526,7 +526,7 @@ class ArticlesGenerator(CachingGenerator):
|
|||
|
||||
write(save_as, template, context, articles=articles,
|
||||
dates=archive, template_name='period_archives',
|
||||
blog=True, url=url)
|
||||
blog=True, url=url, all_articles=self.articles)
|
||||
|
||||
for period in 'year', 'month', 'day':
|
||||
save_as = period_save_as[period]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue