mirror of
https://github.com/facundoolano/jorge.git
synced 2024-12-25 21:58:28 +01:00
lenient layout loading to prevent errors
This commit is contained in:
parent
7094998638
commit
190fa0073a
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ func (site *Site) loadLayouts() error {
|
||||||
path := filepath.Join(site.Config.LayoutsDir, filename)
|
path := filepath.Join(site.Config.LayoutsDir, filename)
|
||||||
templ, err := templates.Parse(site.templateEngine, path)
|
templ, err := templates.Parse(site.templateEngine, path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return checkFileError(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
layout_name := strings.TrimSuffix(filename, filepath.Ext(filename))
|
layout_name := strings.TrimSuffix(filename, filepath.Ext(filename))
|
||||||
|
|
Loading…
Reference in a new issue