mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
Proper integration of live reload with automatic injection
This commit is contained in:
@@ -864,6 +864,10 @@ func (s *Site) render(d interface{}, out string, layouts ...string) (err error)
|
||||
transformLinks = append(transformLinks, absURL...)
|
||||
}
|
||||
|
||||
if viper.GetBool("watch") && !viper.GetBool("DisableLiveReload") {
|
||||
transformLinks = append(transformLinks, transform.LiveReloadInject)
|
||||
}
|
||||
|
||||
transformer := transform.NewChain(transformLinks...)
|
||||
|
||||
var renderBuffer *bytes.Buffer
|
||||
|
Reference in New Issue
Block a user