Revert *_ARCHIVE_URL default settings to blank

This commit is contained in:
DJ Ramones 2023-08-17 02:35:39 +08:00
commit 30adfba1ca
No known key found for this signature in database
GPG key ID: D0EB42161D927EB0
2 changed files with 16 additions and 16 deletions

View file

@ -561,11 +561,14 @@ written over time.
Example usage:: Example usage::
YEAR_ARCHIVE_SAVE_AS = 'posts/{date:%Y}/index.html' YEAR_ARCHIVE_SAVE_AS = 'posts/{date:%Y}/index.html'
YEAR_ARCHIVE_URL = 'posts/{date:%Y}/'
MONTH_ARCHIVE_SAVE_AS = 'posts/{date:%Y}/{date:%b}/index.html' MONTH_ARCHIVE_SAVE_AS = 'posts/{date:%Y}/{date:%b}/index.html'
MONTH_ARCHIVE_URL = 'posts/{date:%Y}/{date:%b}/'
With these settings, Pelican will create an archive of all your posts for the With these settings, Pelican will create an archive of all your posts for the
year at (for instance) ``posts/2011/index.html`` and an archive of all your year at (for instance) ``posts/2011/index.html`` and an archive of all your
posts for the month at ``posts/2011/Aug/index.html``. posts for the month at ``posts/2011/Aug/index.html``. These can be accessed
through the URLs ``posts/2011/`` and ``posts/2011/Aug/``, respectively.
.. note:: .. note::
Period archives work best when the final path segment is ``index.html``. Period archives work best when the final path segment is ``index.html``.
@ -576,31 +579,28 @@ posts for the month at ``posts/2011/Aug/index.html``.
The location to save per-year archives of your posts. The location to save per-year archives of your posts.
.. data:: YEAR_ARCHIVE_URL = 'posts/{date:%Y}/' .. data:: YEAR_ARCHIVE_URL = ''
The URL to use for per-year archives of your posts. This default value The URL to use for per-year archives of your posts. You should set this if
matches a ``YEAR_ARCHIVE_SAVE_AS`` setting of you enable per-year archives.
``posts/{date:%Y}/index.html``.
.. data:: MONTH_ARCHIVE_SAVE_AS = '' .. data:: MONTH_ARCHIVE_SAVE_AS = ''
The location to save per-month archives of your posts. The location to save per-month archives of your posts.
.. data:: MONTH_ARCHIVE_URL = 'posts/{date:%Y}/{date:%b}/' .. data:: MONTH_ARCHIVE_URL = ''
The URL to use for per-month archives of your posts. This default value The URL to use for per-month archives of your posts. You should set this if
matches a ``MONTH_ARCHIVE_SAVE_AS`` setting of you enable per-month archives.
``posts/{date:%Y}/{date:%b}/index.html``.
.. data:: DAY_ARCHIVE_SAVE_AS = '' .. data:: DAY_ARCHIVE_SAVE_AS = ''
The location to save per-day archives of your posts. The location to save per-day archives of your posts.
.. data:: DAY_ARCHIVE_URL = 'posts/{date:%Y}/{date:%b}/{date:%d}/' .. data:: DAY_ARCHIVE_URL = ''
The URL to use for per-day archives of your posts. This default value The URL to use for per-day archives of your posts. You should set this if
matches a ``DAY_ARCHIVE_SAVE_AS`` setting of you enable per-day archives.
``posts/{date:%Y}/{date:%b}/{date:%d}/index.html``.
``DIRECT_TEMPLATES`` work a bit differently than noted above. Only the ``DIRECT_TEMPLATES`` work a bit differently than noted above. Only the
``_SAVE_AS`` settings are available, but it is available for any direct ``_SAVE_AS`` settings are available, but it is available for any direct

View file

@ -90,11 +90,11 @@ DEFAULT_CONFIG = {
(1, '{name}{extension}', '{name}{extension}'), (1, '{name}{extension}', '{name}{extension}'),
(2, '{name}{number}{extension}', '{name}{number}{extension}'), (2, '{name}{number}{extension}', '{name}{number}{extension}'),
], ],
'YEAR_ARCHIVE_URL': 'posts/{date:%Y}/', 'YEAR_ARCHIVE_URL': '',
'YEAR_ARCHIVE_SAVE_AS': '', 'YEAR_ARCHIVE_SAVE_AS': '',
'MONTH_ARCHIVE_URL': 'posts/{date:%Y}/{date:%b}/', 'MONTH_ARCHIVE_URL': '',
'MONTH_ARCHIVE_SAVE_AS': '', 'MONTH_ARCHIVE_SAVE_AS': '',
'DAY_ARCHIVE_URL': 'posts/{date:%Y}/{date:%b}/{date:%d}/', 'DAY_ARCHIVE_URL': '',
'DAY_ARCHIVE_SAVE_AS': '', 'DAY_ARCHIVE_SAVE_AS': '',
'RELATIVE_URLS': False, 'RELATIVE_URLS': False,
'DEFAULT_LANG': 'en', 'DEFAULT_LANG': 'en',