mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
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" }} ```
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user