Skip to content

Commit

Permalink
Fix path to templates error
Browse files Browse the repository at this point in the history
  • Loading branch information
abneed committed May 23, 2022
1 parent fb3af3a commit 588015c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/render/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ func CreateTemplateCache() (map[string]*template.Template, error) {
return myCache, err
}

matches, err := filepath.Glob(fmt.Sprintf("%s/templates/*layout.html", pathToTemplates))
matches, err := filepath.Glob(fmt.Sprintf("%s/*layout.html", pathToTemplates))
if err != nil {
return myCache, err
}

if len(matches) > 0 {
ts, err = ts.ParseGlob(fmt.Sprintf("%s/templates/*.layout.html", pathToTemplates))
ts, err = ts.ParseGlob(fmt.Sprintf("%s/*.layout.html", pathToTemplates))
if err != nil {
return myCache, err
}
Expand Down

0 comments on commit 588015c

Please sign in to comment.