mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
41857d036d
commit
2320c5682c
1 changed files with 3 additions and 1 deletions
|
@ -943,7 +943,9 @@ func (c *commandeer) newWatcher(port int) error {
|
||||||
const layout = "2006-01-02 15:04 -0700"
|
const layout = "2006-01-02 15:04 -0700"
|
||||||
c.Logger.FEEDBACK.Println(time.Now().Format(layout))
|
c.Logger.FEEDBACK.Println(time.Now().Format(layout))
|
||||||
|
|
||||||
c.rebuildSites(dynamicEvents)
|
if err := c.rebuildSites(dynamicEvents); err != nil {
|
||||||
|
c.Logger.ERROR.Println("Failed to rebuild site:", err)
|
||||||
|
}
|
||||||
|
|
||||||
if !buildWatch && !c.Cfg.GetBool("disableLiveReload") {
|
if !buildWatch && !c.Cfg.GetBool("disableLiveReload") {
|
||||||
// Will block forever trying to write to a channel that nobody is reading if livereload isn't initialized
|
// Will block forever trying to write to a channel that nobody is reading if livereload isn't initialized
|
||||||
|
|
Loading…
Reference in a new issue