From 190fa0073ab6a465622a8a44bdb740f48a135e16 Mon Sep 17 00:00:00 2001 From: facundoolano Date: Wed, 21 Feb 2024 18:46:37 -0300 Subject: [PATCH] lenient layout loading to prevent errors --- site/site.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/site.go b/site/site.go index 2334b4a..7ca09f0 100644 --- a/site/site.go +++ b/site/site.go @@ -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))