hugolib: Allow arrays of arrays in frontmatter Params

Fixes #2752
This commit is contained in:
Cameron Moore
2016-12-27 20:08:24 -06:00
committed by Bjørn Erik Pedersen
parent 3286b24fce
commit 3d058a936f
2 changed files with 57 additions and 0 deletions

View File

@@ -1018,6 +1018,8 @@ func (p *Page) update(f interface{}) error {
p.Params[loki] = vvv
case map[string]interface{}: // Proper parsing structured array from JSON based FrontMatter
p.Params[loki] = vvv
case []interface{}:
p.Params[loki] = vvv
default:
a := make([]string, len(vvv))
for i, u := range vvv {