summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/collections/Intersect.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/functions/collections/Intersect.md')
-rw-r--r--docs/content/en/functions/collections/Intersect.md21
1 files changed, 7 insertions, 14 deletions
diff --git a/docs/content/en/functions/collections/Intersect.md b/docs/content/en/functions/collections/Intersect.md
index 6a2c131b4..8bc60f8e1 100644
--- a/docs/content/en/functions/collections/Intersect.md
+++ b/docs/content/en/functions/collections/Intersect.md
@@ -1,26 +1,20 @@
---
title: collections.Intersect
-linkTitle: intersect
description: Returns the common elements of two arrays or slices, in the same order as the first array.
-categories: [functions]
+categories: []
keywords: []
-menu:
- docs:
- parent: functions
-function:
+action:
aliases: [intersect]
+ related:
+ - functions/collections/Complement
+ - functions/collections/SymDiff
+ - functions/collections/Union
returnType: any
signatures: [collections.Intersect SET1 SET2]
-relatedFunctions:
- - collections.Complement
- - collections.Intersect
- - collections.SymDiff
- - collections.Union
aliases: [/functions/intersect]
---
-A useful example is to use it as `AND` filters when combined with where:
-## AND filter in where query
+A useful example is to use it as `AND` filters when combined with where:
```go-html-template
{{ $pages := where .Site.RegularPages "Type" "not in" (slice "page" "about") }}
@@ -32,6 +26,5 @@ The above fetches regular pages not of `page` or `about` type unless they are pi
See [union](/functions/collections/union) for `OR`.
-
[partials]: /templates/partials/
[single]: /templates/single-page-templates/