mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-24 17:03:48 +00:00
commands: Remove some now superflous Fast Render Mode code
Updates #4339
This commit is contained in:
parent
94e736c5e1
commit
feeed073c3
1 changed files with 0 additions and 8 deletions
|
@ -1156,14 +1156,6 @@ func (c *commandeer) newWatcher(dirList ...string) (*watcher.Batcher, error) {
|
||||||
doLiveReload := !buildWatch && !c.Cfg.GetBool("disableLiveReload")
|
doLiveReload := !buildWatch && !c.Cfg.GetBool("disableLiveReload")
|
||||||
onePageName := pickOneWriteOrCreatePath(dynamicEvents)
|
onePageName := pickOneWriteOrCreatePath(dynamicEvents)
|
||||||
|
|
||||||
if onePageName != "" && doLiveReload && !c.Cfg.GetBool("disableFastRender") {
|
|
||||||
p := Hugo.GetContentPage(onePageName)
|
|
||||||
if p != nil {
|
|
||||||
c.visitedURLs.Add(p.RelPermalink())
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
c.Logger.FEEDBACK.Println("\nChange detected, rebuilding site")
|
c.Logger.FEEDBACK.Println("\nChange detected, rebuilding site")
|
||||||
const layout = "2006-01-02 15:04:05.000 -0700"
|
const layout = "2006-01-02 15:04:05.000 -0700"
|
||||||
c.Logger.FEEDBACK.Println(time.Now().Format(layout))
|
c.Logger.FEEDBACK.Println(time.Now().Format(layout))
|
||||||
|
|
Loading…
Reference in a new issue