Fix hugo -w

Fixes #3980
This commit is contained in:
Bjørn Erik Pedersen 2017-10-18 18:35:25 +02:00
parent c3c10f2c7c
commit fa53b13ca0
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -769,7 +769,8 @@ func (c *commandeer) rebuildSites(events []fsnotify.Event) error {
return err return err
} }
visited := c.visitedURLs.PeekAllSet() 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 // Make sure we always render the home page
visited["/"] = true visited["/"] = true
} }