mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'
This commit is contained in:
@@ -3,18 +3,15 @@ title: ByLastmod
|
||||
description: Returns the given page collection sorted by last modification date in ascending order.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
related:
|
||||
- methods/pages/ByDate
|
||||
- methods/pages/ByExpiryDate
|
||||
- methods/pages/ByPublishDate
|
||||
returnType: page.Pages
|
||||
signatures: [PAGES.ByLastmod]
|
||||
params:
|
||||
functions_and_methods:
|
||||
returnType: page.Pages
|
||||
signatures: [PAGES.ByLastmod]
|
||||
---
|
||||
|
||||
When sorting by last modification date, the value is determined by your [site configuration], defaulting to the `lastmod` field in front matter.
|
||||
|
||||
[site configuration]: /getting-started/configuration/#configure-dates
|
||||
[site configuration]: /configuration/front-matter/#dates
|
||||
|
||||
```go-html-template
|
||||
{{ range .Pages.ByLastmod }}
|
||||
|
Reference in New Issue
Block a user