From 7ce34e0422e987949f2684746de279f29a372db1 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sun, 7 Feb 2016 16:29:56 +0000 Subject: [PATCH] fix bug related to objects within arrays / frontmatter --- frontmatter/frontmatter.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontmatter/frontmatter.go b/frontmatter/frontmatter.go index 147715cc..77bd7524 100644 --- a/frontmatter/frontmatter.go +++ b/frontmatter/frontmatter.go @@ -100,6 +100,8 @@ func handleObjects(content interface{}, parent *frontmatter, name string) *front if parent.Name == mainName { c.Name = c.Title + } else if parent.Type == "array" { + c.Name = parent.Name + "[]" } else { c.Name = parent.Name + "[" + c.Title + "]" }