From fa53b13ca0ffb1db6ed20f5353661d3f8a5fd455 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Wed, 18 Oct 2017 18:35:25 +0200 Subject: [PATCH] Fix hugo -w Fixes #3980 --- commands/hugo.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/hugo.go b/commands/hugo.go index 23335f29218..a86d92acd9b 100644 --- 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 }