fix settings error

This commit is contained in:
Henrique Dias
2015-09-15 21:28:54 +01:00
parent e045d76bcd
commit 7a5e184610
2 changed files with 16 additions and 5 deletions

View File

@@ -30,6 +30,8 @@ func rawToPretty(config interface{}, master string, parent string) interface{} {
if utils.IsSlice(config) {
settings := make([]interface{}, len(config.([]interface{})))
// TODO: improve this function
for index, element := range config.([]interface{}) {
c := new(frontmatter)
c.Name = master