mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +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:
@@ -370,7 +370,7 @@ func (p *testPage) Param(key interface{}) (interface{}, error) {
|
||||
return resource.Param(p, nil, key)
|
||||
}
|
||||
|
||||
func (p *testPage) Params() map[string]interface{} {
|
||||
func (p *testPage) Params() maps.Params {
|
||||
return p.params
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user