From b3bad9f9dfb32093fc1c18c66e0ffd976f1e667c Mon Sep 17 00:00:00 2001 From: "Fabrizio (Misto) Milo" Date: Sun, 1 Sep 2013 11:02:50 -0700 Subject: [PATCH] fix NewNode --- hugolib/site.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hugolib/site.go b/hugolib/site.go index 451fb7d91..3510691a2 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -592,10 +592,11 @@ func (s *Site) Stats() { } } -func (s *Site) NewNode() (y Node) { - y.Data = make(map[string]interface{}) - y.Site = s.Info - return y +func (s *Site) NewNode() *Node { + return &Node{ + Data: make(map[string]interface{}), + Site: s.Info, + } } func (s *Site) RenderThing(d interface{}, layout string) (*bytes.Buffer, error) {