mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
Merge commit '230a495941b191af0bdaa7e2fc8c61607cb38207'
This commit is contained in:
@@ -15,7 +15,7 @@ aliases: []
|
||||
Example:
|
||||
|
||||
```go-html-template
|
||||
{{ $pages := .Site.RegularPages | first 50 }}
|
||||
{{ $pages := site.RegularPages | first 50 }}
|
||||
{{ $news := where $pages "Type" "news" | first 5 }}
|
||||
{{ $blog := where $pages "Type" "blog" | first 5 }}
|
||||
{{ $other := $pages | complement $news $blog | first 10 }}
|
||||
|
Reference in New Issue
Block a user