mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-15 10:14:53 +00:00
Update complement.md
This commit is contained in:
1 parent
7013ee43e7
commit
b55f5773b1
1 file changed
+1
-1
@@ -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 }}
|
||||||
|
|||||||
Reference in new issue
Block a user