mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Changed wording of the setting to NEWEST_FIRST_ARCHIVES
Also updated documentation and tested to make sure behavior matches expected wording
This commit is contained in:
parent
79e480a894
commit
fe91caf325
4 changed files with 5 additions and 5 deletions
|
|
@ -111,7 +111,7 @@ LINKS :
|
||||||
PDF_PROCESSOR :
|
PDF_PROCESSOR :
|
||||||
Génère ou non les articles et pages au format pdf ;
|
Génère ou non les articles et pages au format pdf ;
|
||||||
|
|
||||||
REVERSE_ARCHIVE_ORDER :
|
NEWEST_FIRST_ARCHIVES :
|
||||||
Met les articles plus récent en tête de l'archive ;
|
Met les articles plus récent en tête de l'archive ;
|
||||||
|
|
||||||
SOCIAL :
|
SOCIAL :
|
||||||
|
|
|
||||||
|
|
@ -364,8 +364,8 @@ Ordering content
|
||||||
================================================ =====================================================
|
================================================ =====================================================
|
||||||
Setting name (default value) What does it do?
|
Setting name (default value) What does it do?
|
||||||
================================================ =====================================================
|
================================================ =====================================================
|
||||||
`REVERSE_ARCHIVE_ORDER` (``True``) Reverse the archives list order. (True: orders by date
|
`NEWEST_FIRST_ARCHIVES` (``True``) Order archives by newest first by date. (False:
|
||||||
in descending order, with newer articles first.)
|
orders by date with older articles first.)
|
||||||
`REVERSE_CATEGORY_ORDER` (``False``) Reverse the category order. (True: lists by reverse
|
`REVERSE_CATEGORY_ORDER` (``False``) Reverse the category order. (True: lists by reverse
|
||||||
alphabetical order; default lists alphabetically.)
|
alphabetical order; default lists alphabetically.)
|
||||||
================================================ =====================================================
|
================================================ =====================================================
|
||||||
|
|
|
||||||
|
|
@ -308,7 +308,7 @@ class ArticlesGenerator(Generator):
|
||||||
self.articles.sort(key=attrgetter('date'), reverse=True)
|
self.articles.sort(key=attrgetter('date'), reverse=True)
|
||||||
self.dates = list(self.articles)
|
self.dates = list(self.articles)
|
||||||
self.dates.sort(key=attrgetter('date'),
|
self.dates.sort(key=attrgetter('date'),
|
||||||
reverse=self.context['REVERSE_ARCHIVE_ORDER'])
|
reverse=self.context['NEWEST_FIRST_ARCHIVES'])
|
||||||
|
|
||||||
# create tag cloud
|
# create tag cloud
|
||||||
tag_cloud = defaultdict(int)
|
tag_cloud = defaultdict(int)
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ _DEFAULT_CONFIG = {'PATH': '.',
|
||||||
'DEFAULT_DATE': 'fs',
|
'DEFAULT_DATE': 'fs',
|
||||||
'WITH_FUTURE_DATES': True,
|
'WITH_FUTURE_DATES': True,
|
||||||
'CSS_FILE': 'main.css',
|
'CSS_FILE': 'main.css',
|
||||||
'REVERSE_ARCHIVE_ORDER': True,
|
'NEWEST_FIRST_ARCHIVES': True,
|
||||||
'REVERSE_CATEGORY_ORDER': False,
|
'REVERSE_CATEGORY_ORDER': False,
|
||||||
'DELETE_OUTPUT_DIRECTORY': False,
|
'DELETE_OUTPUT_DIRECTORY': False,
|
||||||
'ARTICLE_URL': '{slug}.html',
|
'ARTICLE_URL': '{slug}.html',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue