mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 04:16:13 +00:00
Add AND as a title
This commit is contained in:
1 parent
6e7733b408
commit
ffa9b165ef
1 file changed
+2
-1
@@ -18,9 +18,10 @@ relatedfuncs: []
|
|||||||
deprecated: false
|
deprecated: false
|
||||||
aliases: []
|
aliases: []
|
||||||
---
|
---
|
||||||
|
|
||||||
An useful example is to use it as `AND` filters when combined with where:
|
An useful example is to use it as `AND` filters when combined with where:
|
||||||
|
|
||||||
|
## AND filter in where query
|
||||||
|
|
||||||
```
|
```
|
||||||
{{ $pages := where .Site.RegularPages "Type" "not in" (slice "page" "about") }}
|
{{ $pages := where .Site.RegularPages "Type" "not in" (slice "page" "about") }}
|
||||||
{{ $pages := $pages | union (where .Site.RegularPages "Params.pinned" true) }}
|
{{ $pages := $pages | union (where .Site.RegularPages "Params.pinned" true) }}
|
||||||
|
|||||||
Reference in new issue
Block a user