From: Bjørn Erik Pedersen Date: Wed, 18 Oct 2017 16:35:25 +0000 (+0200) Subject: Fix hugo -w X-Git-Tag: v0.30.1~7 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=fa53b13ca0ffb1db6ed20f5353661d3f8a5fd455;p=brevno-suite%2Fhugo Fix hugo -w Fixes #3980 --- diff --git a/commands/hugo.go b/commands/hugo.go index 23335f29..a86d92ac 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 }