mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
GroupByParamDate now supports datetimes
Previously, the method only worked for date strings but not (for instance) full RFC3339 datetime strings.
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
a9718f44cd
commit
f9f779786e
@@ -316,7 +316,7 @@ func (p Pages) GroupByParamDate(key string, format string, order ...string) (Pag
|
||||
var r Pages
|
||||
|
||||
for _, p := range pages {
|
||||
param := resource.GetParamToLower(p, key)
|
||||
param := resource.GetParam(p, key)
|
||||
var t time.Time
|
||||
|
||||
if param != nil {
|
||||
|
Reference in New Issue
Block a user