diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-11-21 21:59:38 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-11-22 18:41:50 +0100 |
commit | a3fe5e5e35f311f22b6b4fc38abfcf64cd2c7d6f (patch) | |
tree | 06cf1f647ae026b4fb3053c85370c2b203c7a089 /resources/transform.go | |
parent | cd07e6d57b158a76f812e8c4c9567dbc84f57939 (diff) |
Fix Params case handling in the index, sort and where func
This means that you can now do:
```
{{ range where .Site.Pages "Params.MYPARAM" "foo" }}
```
Diffstat (limited to 'resources/transform.go')
-rw-r--r-- | resources/transform.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/transform.go b/resources/transform.go index ee4912a10..0e44c6bbc 100644 --- a/resources/transform.go +++ b/resources/transform.go @@ -26,11 +26,11 @@ import ( bp "github.com/gohugoio/hugo/bufferpool" - "github.com/gohugoio/hugo/resources/internal" - "github.com/gohugoio/hugo/common/herrors" "github.com/gohugoio/hugo/common/hugio" + "github.com/gohugoio/hugo/common/maps" "github.com/gohugoio/hugo/helpers" + "github.com/gohugoio/hugo/resources/internal" "github.com/gohugoio/hugo/resources/resource" "github.com/gohugoio/hugo/media" @@ -200,7 +200,7 @@ func (r *resourceAdapter) Name() string { return r.target.Name() } -func (r *resourceAdapter) Params() map[string]interface{} { +func (r *resourceAdapter) Params() maps.Params { r.init(false, false) return r.target.Params() } |