mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 04:08:21 -04:00
Update complement.md
This commit is contained in:
parent
7013ee43e7
commit
b55f5773b1
@ -15,7 +15,7 @@ aliases: []
|
|||||||
Example:
|
Example:
|
||||||
|
|
||||||
```go-html-template
|
```go-html-template
|
||||||
{{ $pages := .Site.RegularPages | first 50 }}
|
{{ $pages := site.RegularPages | first 50 }}
|
||||||
{{ $news := where $pages "Type" "news" | first 5 }}
|
{{ $news := where $pages "Type" "news" | first 5 }}
|
||||||
{{ $blog := where $pages "Type" "blog" | first 5 }}
|
{{ $blog := where $pages "Type" "blog" | first 5 }}
|
||||||
{{ $other := $pages | complement $news $blog | first 10 }}
|
{{ $other := $pages | complement $news $blog | first 10 }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user