mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Clarify ARTICLE_ORDER_BY documentation
This commit is contained in:
parent
31398d4247
commit
4b6b5f0461
1 changed files with 5 additions and 4 deletions
|
|
@ -1134,10 +1134,11 @@ Ordering content
|
|||
|
||||
Defines how the articles (``articles_page.object_list`` in the template) are
|
||||
sorted. Valid options are: metadata as a string (use ``reversed-`` prefix
|
||||
the reverse the sort order), special option ``'basename'`` which will use
|
||||
the basename of the file (without path) or a custom function to extract the
|
||||
sorting key from articles. The default value, ``'reversed-date'``, will sort
|
||||
articles by date in reverse order (i.e. newest article comes first).
|
||||
to reverse the sort order), special option ``'basename'`` which will use
|
||||
the basename of the file (without path), or a custom function to extract the
|
||||
sorting key from articles. Using a value of ``'date'`` will sort articles in
|
||||
chronological order, while the default value, ``'reversed-date'``, will sort
|
||||
articles by date in reverse order (i.e., newest article comes first).
|
||||
|
||||
.. data:: PAGE_ORDER_BY = 'basename'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue