diff --git a/hugolib/site.go b/hugolib/site.go index 73862a383..94e9b50dc 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -646,11 +646,9 @@ func (s *Site) Stats() { } } -func (s *Site) NewNode() Node { - var y Node +func (s *Site) NewNode() (y Node) { y.Data = make(map[string]interface{}) y.Site = s.Info - return y }