Fix hugo -w
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 18 Oct 2017 16:35:25 +0000 (18:35 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 18 Oct 2017 16:35:25 +0000 (18:35 +0200)
Fixes #3980

commands/hugo.go

index 23335f2921835b2fb7947db805f863ff0455568f..a86d92acd9b2c1ccbb84f23a9c54a4fbd8b1c3d2 100644 (file)
@@ -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
        }