mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
@@ -1716,7 +1716,10 @@ func (s *Site) renderAndWritePage(statCounter *uint64, name string, targetPath s
|
||||
}
|
||||
|
||||
if s.running() && s.Cfg.GetBool("watch") && !s.Cfg.GetBool("disableLiveReload") {
|
||||
pd.LiveReloadPort = s.Cfg.GetInt("liveReloadPort")
|
||||
pd.LiveReloadBaseURL = s.PathSpec.BaseURL.URL()
|
||||
if s.Cfg.GetInt("liveReloadPort") != -1 {
|
||||
pd.LiveReloadBaseURL.Host = fmt.Sprintf("%s:%d", pd.LiveReloadBaseURL.Hostname(), s.Cfg.GetInt("liveReloadPort"))
|
||||
}
|
||||
}
|
||||
|
||||
// For performance reasons we only inject the Hugo generator tag on the home page.
|
||||
|
Reference in New Issue
Block a user