shithub: hugo

Download patch

ref: fa53b13ca0ffb1db6ed20f5353661d3f8a5fd455
parent: c3c10f2c7ce4ee11186f51161943efc8b37a28c9
author: Bjørn Erik Pedersen <[email protected]>
date: Wed Oct 18 14:35:25 EDT 2017

Fix hugo -w

Fixes #3980

--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -769,7 +769,8 @@
 		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
 	}