Skip to content

Commit fa53b13

Browse files
committed
Fix hugo -w
Fixes #3980
1 parent c3c10f2 commit fa53b13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎commands/hugo.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,8 @@ func (c *commandeer) rebuildSites(events []fsnotify.Event) error {
769769
return err
770770
}
771771
visited := c.visitedURLs.PeekAllSet()
772-
if !c.Cfg.GetBool("disableFastRender") {
772+
doLiveReload := !buildWatch && !c.Cfg.GetBool("disableLiveReload")
773+
if doLiveReload && !c.Cfg.GetBool("disableFastRender") {
773774
// Make sure we always render the home page
774775
visited["/"] = true
775776
}

0 commit comments

Comments
 (0)