mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
fixed #656. Templates work properly when watching.
This commit is contained in:
@@ -167,7 +167,7 @@ func (s *Site) Analyze() {
|
||||
}
|
||||
|
||||
func (s *Site) prepTemplates() {
|
||||
s.Tmpl = tpl.T()
|
||||
s.Tmpl = tpl.InitializeT()
|
||||
s.Tmpl.LoadTemplates(s.absLayoutDir())
|
||||
if s.hasTheme() {
|
||||
s.Tmpl.LoadTemplatesWithPrefix(s.absThemeDir()+"/layouts", "theme")
|
||||
|
Reference in New Issue
Block a user