lenient layout loading to prevent errors

This commit is contained in:
facundoolano 2024-02-21 18:46:37 -03:00
parent 7094998638
commit 190fa0073a

View file

@ -76,7 +76,7 @@ func (site *Site) loadLayouts() error {
path := filepath.Join(site.Config.LayoutsDir, filename)
templ, err := templates.Parse(site.templateEngine, path)
if err != nil {
return err
return checkFileError(err)
}
layout_name := strings.TrimSuffix(filename, filepath.Ext(filename))