From f1a061e9ed6d9fffab5db9ae693e23ebe3b0cd19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Wed, 19 Jul 2023 09:23:48 +0200 Subject: Re-instate disableLiveReload as a config option (and not just a flag) Closes #11259 --- hugolib/site.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hugolib/site.go') diff --git a/hugolib/site.go b/hugolib/site.go index eb6a4e344..b5c43fba3 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -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() } -- cgit v1.2.3