mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +02:00
@@ -37,7 +37,11 @@ func getNested(m map[string]interface{}, indices []string) (interface{}, string,
|
||||
first := indices[0]
|
||||
v, found := m[strings.ToLower(cast.ToString(first))]
|
||||
if !found {
|
||||
if len(indices) == 1 {
|
||||
return nil, first, m
|
||||
}
|
||||
return nil, "", nil
|
||||
|
||||
}
|
||||
|
||||
if len(indices) == 1 {
|
||||
|
Reference in New Issue
Block a user