mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-19 15:53:24 +00:00
fix NewNode
This commit is contained in:
parent
9678f68e0f
commit
b3bad9f9df
1 changed files with 5 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue