mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Add a period archives feature and brief docs.
Allows users to have per-year, per-month, and per-day archives of posts automatically generated. The feature is disabled by default; to enable it a user must supply format strings for a period's respective `_SAVE_AS` setting.
This commit is contained in:
parent
c3e9d0e96e
commit
f92c800216
4 changed files with 83 additions and 11 deletions
|
|
@ -60,6 +60,9 @@ _DEFAULT_CONFIG = {'PATH': '.',
|
|||
'TAG_SAVE_AS': 'tag/{slug}.html',
|
||||
'AUTHOR_URL': 'author/{slug}.html',
|
||||
'AUTHOR_SAVE_AS': 'author/{slug}.html',
|
||||
'YEAR_ARCHIVE_SAVE_AS': False,
|
||||
'MONTH_ARCHIVE_SAVE_AS': False,
|
||||
'DAY_ARCHIVE_SAVE_AS': False,
|
||||
'RELATIVE_URLS': True,
|
||||
'DEFAULT_LANG': 'en',
|
||||
'TAG_CLOUD_STEPS': 4,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue