1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00

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

View 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
}