add missing error return

This commit is contained in:
facundoolano 2024-02-15 13:43:12 -03:00
parent 513befe8b8
commit bacc9d9052

View file

@ -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)