diff options
author | Bjørn Erik Pedersen <[email protected]> | 2017-10-19 10:09:04 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2017-10-19 10:09:04 +0200 |
commit | 3164103310fbca1211cfa9ce4a5eb7437854b6ad (patch) | |
tree | e02a799829820659b3fdec508912568f63c1a368 /commands/hugo.go | |
parent | 6a5170116c5c4d90fcb31d43870d44f68860a0d4 (diff) | |
download | hugo-3164103310fbca1211cfa9ce4a5eb7437854b6ad.tar.gz hugo-3164103310fbca1211cfa9ce4a5eb7437854b6ad.zip |
commands: Support Fast Render mode with sub-path in baseURL
Fixes #3981
Diffstat (limited to 'commands/hugo.go')
-rw-r--r-- | commands/hugo.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/hugo.go b/commands/hugo.go index a86d92acd..5961ede3b 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -771,8 +771,9 @@ func (c *commandeer) rebuildSites(events []fsnotify.Event) error { visited := c.visitedURLs.PeekAllSet() doLiveReload := !buildWatch && !c.Cfg.GetBool("disableLiveReload") if doLiveReload && !c.Cfg.GetBool("disableFastRender") { + home := c.pathSpec.PrependBasePath("/") // Make sure we always render the home page - visited["/"] = true + visited[home] = true } return Hugo.Build(hugolib.BuildCfg{PrintStats: !quiet, Watching: true, RecentlyVisited: visited}, events...) } |