Re-instate disableLiveReload as a config option (and not just a flag)

Closes #11259
This commit is contained in:
Bjørn Erik Pedersen
2023-07-19 09:23:48 +02:00
parent 2f11e673c5
commit f1a061e9ed
5 changed files with 56 additions and 14 deletions

View File

@@ -1058,7 +1058,7 @@ func (s *Site) renderAndWritePage(statCounter *uint64, name string, targetPath s
pd.AbsURLPath = s.absURLPath(targetPath)
}
if s.watching() && s.conf.Internal.Running && !s.conf.Internal.DisableLiveReload {
if s.watching() && s.conf.Internal.Running && !s.conf.DisableLiveReload {
pd.LiveReloadBaseURL = s.Conf.BaseURLLiveReload().URL()
}