d4610a93 by astaxie

fix layout

1 parent 6af2778a
...@@ -160,6 +160,7 @@ func (c *Controller) RenderBytes() ([]byte, error) { ...@@ -160,6 +160,7 @@ func (c *Controller) RenderBytes() ([]byte, error) {
160 BeeTemplates[subdir].ExecuteTemplate(newbytes, file, c.Data) 160 BeeTemplates[subdir].ExecuteTemplate(newbytes, file, c.Data)
161 tplcontent, _ := ioutil.ReadAll(newbytes) 161 tplcontent, _ := ioutil.ReadAll(newbytes)
162 c.Data["LayoutContent"] = template.HTML(string(tplcontent)) 162 c.Data["LayoutContent"] = template.HTML(string(tplcontent))
163 subdir = path.Dir(c.Layout)
163 _, file = path.Split(c.Layout) 164 _, file = path.Split(c.Layout)
164 ibytes := bytes.NewBufferString("") 165 ibytes := bytes.NewBufferString("")
165 err := BeeTemplates[subdir].ExecuteTemplate(ibytes, file, c.Data) 166 err := BeeTemplates[subdir].ExecuteTemplate(ibytes, file, c.Data)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!