Skip to content

Commit

Permalink
Fix hugo -w
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Oct 18, 2017
1 parent c3c10f2 commit fa53b13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commands/hugo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit fa53b13

Please sign in to comment.