mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
resources/page: Let GroupByParam return nil instead of error
Closes #12578
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
9c4e14eb4f
commit
cba2de6ec9
@@ -205,7 +205,7 @@ func (p Pages) GroupByParam(key string, order ...string) (PagesGroup, error) {
|
||||
}
|
||||
}
|
||||
if !tmp.IsValid() {
|
||||
return nil, errors.New("there is no such param")
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
for _, e := range p {
|
||||
|
Reference in New Issue
Block a user