Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/functions/complement.md')
-rw-r--r--docs/content/en/functions/complement.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/content/en/functions/complement.md b/docs/content/en/functions/complement.md
index 461227789..a41faf524 100644
--- a/docs/content/en/functions/complement.md
+++ b/docs/content/en/functions/complement.md
@@ -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 }}