mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-30 00:53:28 -05:00
Params map has string as key
Related to issue #540 and commit 3c22ca7c84456b19f2a017719b1533902594e672
This commit is contained in:
parent
e127a5cb7d
commit
fdae09070b
1 changed files with 2 additions and 3 deletions
|
@ -88,11 +88,10 @@ func getDateFormat() string {
|
||||||
if params == nil {
|
if params == nil {
|
||||||
return time.RFC3339
|
return time.RFC3339
|
||||||
}
|
}
|
||||||
parms := params.(map[interface{}]interface{})
|
parms := params.(map[string]interface{})
|
||||||
layout := parms["DateFormat"]
|
layout := parms["DateFormat"]
|
||||||
if layout == nil || layout == "" {
|
if layout == nil || layout == "" {
|
||||||
return time.RFC3339
|
return time.RFC3339
|
||||||
}
|
}
|
||||||
return layout.(string)
|
return layout.(string)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue