fix layout
Showing
1 changed file
with
1 additions
and
0 deletions
| ... | @@ -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) | ... | ... |
-
Please register or sign in to post a comment