Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/page.go')
-rw-r--r--hugolib/page.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/hugolib/page.go b/hugolib/page.go
index 12bdf312b..306d33734 100644
--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -65,6 +65,7 @@ const (
KindPage = "page"
// The rest are node types; home page, sections etc.
+
KindHome = "home"
KindSection = "section"
KindTaxonomy = "taxonomy"
@@ -484,10 +485,10 @@ func traverse(keys []string, m map[string]interface{}) interface{} {
if len(rest) == 0 {
// That was the last key.
return result
- } else {
- // That was not the last key.
- return traverse(rest, cast.ToStringMap(result))
}
+
+ // That was not the last key.
+ return traverse(rest, cast.ToStringMap(result))
}
func (p *Page) Author() Author {