Fix livereload in multilingual mode - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit d18a8cbe15ad0d52fe8cd720906ef108a56d24bf
DIR parent 506e131f281be411c94b411324ef8bffc352cb66
HTML Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Sun, 7 Aug 2016 22:41:48 +0200
Fix livereload in multilingual mode
See #2309
Diffstat:
M commands/hugo.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/commands/hugo.go b/commands/hugo.go
@@ -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.