generate month and year archive pages
authorM. Taylor Saotome-Westlake <ultimatelyuntruethought@gmail.com>
Sat, 9 Sep 2017 01:10:06 +0000 (18:10 -0700)
committerM. Taylor Saotome-Westlake <ultimatelyuntruethought@gmail.com>
Sat, 9 Sep 2017 01:10:06 +0000 (18:10 -0700)
pelicanconf.py

index e481594..5156680 100644 (file)
@@ -50,6 +50,8 @@ AUTHOR_URL = 'author/{slug}/'
 AUTHOR_SAVE_AS = 'author/{slug}/index.html'
 ARCHIVES_URL = 'archives'
 ARCHIVES_SAVE_AS = 'archives/index.html'
+YEAR_ARCHIVE_SAVE_AS = '{date:%Y}/index.html'
+MONTH_ARCHIVE_SAVE_AS = '{date:%Y}/{date:%b}/index.html'
 
 PAGINATION_PATTERNS = (
     (1, '{base_name}/', '{base_name}/index.html'),