working settings

This commit is contained in:
Henrique Dias
2015-09-14 18:18:26 +01:00
parent 4d07761bd5
commit a388b6a025
11 changed files with 187 additions and 65 deletions

View File

@@ -24,12 +24,12 @@ func Pretty(content []byte, language string) (interface{}, error) {
return []string{}, err
}
//log.Print(c)
return rawToPretty(c, ""), nil
}
type frontmatter struct {
Name string
Tag string
Content interface{}
SubContent bool
}
@@ -55,7 +55,6 @@ func rawToPretty(config interface{}, master string) interface{} {
for index := range names {
c := new(frontmatter)
c.Name = names[index]
c.Tag = master + "_" + names[index]
c.SubContent = false
i := config.(map[string]interface{})[names[index]]