mirror of
https://github.com/facundoolano/jorge.git
synced 2024-12-26 21:58:51 +01:00
add missing error return
This commit is contained in:
parent
513befe8b8
commit
bacc9d9052
1 changed files with 3 additions and 0 deletions
|
@ -215,6 +215,9 @@ func (site Site) render(templ *templates.Template) ([]byte, error) {
|
|||
ctx["layout"] = layout_templ.Metadata
|
||||
ctx["content"] = content
|
||||
content, err = layout_templ.Render(ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
layout = layout_templ.Metadata["layout"]
|
||||
} else {
|
||||
return nil, fmt.Errorf("layout '%s' not found", layout)
|
||||
|
|
Loading…
Reference in a new issue