From a191b38ac80356ee67caa28f6038a957150ba68d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Fri, 2 Jun 2023 07:49:42 +0200 Subject: Don't inject livereload script on hugo -w Fixes #11061 --- 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 d23a90385..19821e8b2 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -1064,7 +1064,7 @@ func (s *Site) renderAndWritePage(statCounter *uint64, name string, targetPath s pd.AbsURLPath = s.absURLPath(targetPath) } - if s.watching() && s.conf.Internal.Watch && !s.conf.Internal.DisableLiveReload { + if s.watching() && s.conf.Internal.Running && !s.conf.Internal.DisableLiveReload { pd.LiveReloadBaseURL = s.Conf.BaseURLLiveReload().URL() } -- cgit v1.2.3