Provide 'all_articles' variable to period pages

This allows 'recent posts' functionality to work properly.
This commit is contained in:
Marcin Juszkiewicz 2019-04-19 16:55:17 +02:00
commit 8520840be6
2 changed files with 7 additions and 4 deletions

View file

@ -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]