hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit fa53b13ca0ffb1db6ed20f5353661d3f8a5fd455
parent c3c10f2c7ce4ee11186f51161943efc8b37a28c9
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Wed, 18 Oct 2017 18:35:25 +0200

Fix hugo -w

Fixes #3980

Diffstat:
Mcommands/hugo.go | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/commands/hugo.go b/commands/hugo.go
@@ -769,7 +769,8 @@ func (c *commandeer) rebuildSites(events []fsnotify.Event) error {
 		return err
 	}
 	visited := c.visitedURLs.PeekAllSet()
-	if !c.Cfg.GetBool("disableFastRender") {
+	doLiveReload := !buildWatch && !c.Cfg.GetBool("disableLiveReload")
+	if doLiveReload && !c.Cfg.GetBool("disableFastRender") {
 		// Make sure we always render the home page
 		visited["/"] = true
 	}