hugo/tpl
Bjørn Erik Pedersen ccdd08d57a tpl/collections: Add Pages support to Intersect and Union
This enables `AND` (`intersect`)  and `OR` (`union`)  filters when combined with `where`.

Example:

```go
{{ $pages := where .Site.RegularPages "Type" "not in" (slice "page" "about") }}
{{ $pages := $pages | union (where .Site.RegularPages "Params.pinned" true) }}
{{ $pages := $pages | intersect (where .Site.RegularPages "Params.images" "!=" nil) }}
```

The above fetches regular pages not of `page` or `about` type unless they are pinned. And finally, we exclude all pages with no `images` set in Page params.

Fixes #3174
2017-07-03 21:48:03 +02:00
..
cast all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
collections tpl/collections: Add Pages support to Intersect and Union 2017-07-03 21:48:03 +02:00
compare all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
crypto all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
data Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00
encoding all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
fmt all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
images tpl: Add WebP images support 2017-06-28 21:45:48 +02:00
inflect all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
internal all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
lang Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00
math tpl/math: Add log function 2017-07-03 00:20:48 +02:00
os Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00
partials all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
safe Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00
strings Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00
time all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
tplimpl tpl: Only show post's own keywords in schema.org 2017-06-28 21:26:18 +02:00
transform Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00
urls Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00
template.go all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00