1
0
Fork 0
forked from github/pelican

expand period tests to be more specific

This commit is contained in:
Deniz Turgut 2023-10-28 22:11:11 +03:00
commit b8d5919cd2
No known key found for this signature in database
GPG key ID: 87B7168D7AB3ED2F
2 changed files with 48 additions and 16 deletions

View file

@ -484,7 +484,7 @@ class ArticlesGenerator(CachingGenerator):
except PelicanTemplateNotFound:
template = self.get_template('archives')
for granularity in list(self.period_archives.keys()):
for granularity in self.period_archives:
for period in self.period_archives[granularity]:
context = self.context.copy()