mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-31 22:41:53 +02:00
Merge commit 'a6e635ca7d905d9ec3ffd708db2694f680b03aae'
This commit is contained in:
@@ -35,6 +35,19 @@ Use the [`where`] function to filter page collections.
|
||||
|
||||
## Sort
|
||||
|
||||
By default, Hugo sorts page collections by:
|
||||
|
||||
1. [Weight]
|
||||
2. [Date] in descending order
|
||||
3. [LinkTitle] falling back to [Title]
|
||||
4. [Filename] if the page is backed by a file
|
||||
|
||||
[Date]: /methods/page/date/
|
||||
[Weight]: /methods/page/weight/
|
||||
[LinkTitle]: /methods/page/linktitle/
|
||||
[Title]: /methods/page/title/
|
||||
[Filename]: /methods/page/file/#filename
|
||||
|
||||
Use these methods to sort page collections.
|
||||
|
||||
{{< list-pages-in-section path=/methods/pages filter=methods_pages_sort filterType=include titlePrefix=. omitElementIDs=true titlePrefix=PAGES. >}}
|
||||
|
Reference in New Issue
Block a user