mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
Update Last.md
This commit is contained in:
@@ -27,6 +27,8 @@ Set `N` to zero to return an empty collection.
|
||||
|
||||
Use `last` and [`where`] together.
|
||||
|
||||
[`where`]: /functions/collections/where/
|
||||
|
||||
```go-html-template
|
||||
{{ range where .Pages "Section" "articles" | last 5 }}
|
||||
{{ .Render "summary" }}
|
||||
|
||||
Reference in New Issue
Block a user