diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-10-18 18:35:25 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-10-18 18:35:25 +0200 |
commit | fa53b13ca0ffb1db6ed20f5353661d3f8a5fd455 (patch) | |
tree | f401552d03bcf7ea273a249d6e9bfeaf46adcf9a | |
parent | c3c10f2c7ce4ee11186f51161943efc8b37a28c9 (diff) |
Fix hugo -w
Fixes #3980
-rw-r--r-- | commands/hugo.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/hugo.go b/commands/hugo.go index 23335f292..a86d92acd 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 } |