mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +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:
@@ -14,6 +14,7 @@
|
||||
package navigation
|
||||
|
||||
import (
|
||||
"github.com/gohugoio/hugo/common/maps"
|
||||
"github.com/gohugoio/hugo/common/types"
|
||||
"github.com/gohugoio/hugo/compare"
|
||||
|
||||
@@ -59,7 +60,7 @@ type Page interface {
|
||||
Section() string
|
||||
Weight() int
|
||||
IsPage() bool
|
||||
Params() map[string]interface{}
|
||||
Params() maps.Params
|
||||
}
|
||||
|
||||
// Menu is a collection of menu entries.
|
||||
|
Reference in New Issue
Block a user