fix bug related to objects within arrays / frontmatter
This commit is contained in:
parent
984a57b0b3
commit
7ce34e0422
|
@ -100,6 +100,8 @@ func handleObjects(content interface{}, parent *frontmatter, name string) *front
|
||||||
|
|
||||||
if parent.Name == mainName {
|
if parent.Name == mainName {
|
||||||
c.Name = c.Title
|
c.Name = c.Title
|
||||||
|
} else if parent.Type == "array" {
|
||||||
|
c.Name = parent.Name + "[]"
|
||||||
} else {
|
} else {
|
||||||
c.Name = parent.Name + "[" + c.Title + "]"
|
c.Name = parent.Name + "[" + c.Title + "]"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue