Fix livereload in multilingual mode

See #2309
This commit is contained in:
Bjørn Erik Pedersen 2016-08-07 22:41:48 +02:00
parent 506e131f28
commit d18a8cbe15

View file

@ -662,7 +662,7 @@ func buildSites(watching bool) (err error) {
func rebuildSites(events []fsnotify.Event) error {
initSites()
return Hugo.Rebuild(hugolib.BuildCfg{PrintStats: true}, events...)
return Hugo.Rebuild(hugolib.BuildCfg{PrintStats: true, Watching: true}, events...)
}
// NewWatcher creates a new watcher to watch filesystem events.