mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
fixed #656. Templates work properly when watching.
This commit is contained in:
@@ -66,6 +66,12 @@ func T() Template {
|
||||
return tmpl
|
||||
}
|
||||
|
||||
// Resets the internal template state to it's initial state
|
||||
func InitializeT() Template {
|
||||
tmpl = New()
|
||||
return tmpl
|
||||
}
|
||||
|
||||
// Return a new Hugo Template System
|
||||
// With all the additional features, templates & functions
|
||||
func New() Template {
|
||||
|
Reference in New Issue
Block a user