fixed #656. Templates work properly when watching.

This commit is contained in:
spf13
2014-11-24 17:10:38 -05:00
parent 4a2f16f91e
commit cdbc741cb8
2 changed files with 7 additions and 1 deletions

View File

@@ -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")