structure changes

This commit is contained in:
Henrique Dias
2016-03-06 20:37:49 +00:00
parent 3f36200862
commit 1375038a66
43 changed files with 405 additions and 392 deletions

View File

@@ -6,7 +6,7 @@ import (
"sort"
"strings"
"github.com/hacdias/caddy-hugo/tools/types"
"github.com/hacdias/caddy-hugo/tools/variables"
"github.com/spf13/cast"
"github.com/spf13/hugo/parser"
)
@@ -60,9 +60,9 @@ func rawToPretty(config interface{}, parent *frontmatter) interface{} {
}
for name, element := range cnf {
if types.IsMap(element) {
if variables.IsMap(element) {
objects = append(objects, handleObjects(element, parent, name))
} else if types.IsSlice(element) {
} else if variables.IsSlice(element) {
arrays = append(arrays, handleArrays(element, parent, name))
} else {
if name == "title" && parent.Name == mainName {