working settings
This commit is contained in:
1 parent
4d07761bd5
commit
a388b6a025
11 files changed
+187
-65
No files matched your search
@@ -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]]
|
||||
|
||||
Reference in new issue
Block a user