diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-06-02 07:49:42 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-06-02 09:04:00 +0200 |
commit | a191b38ac80356ee67caa28f6038a957150ba68d (patch) | |
tree | 1f6c6f06bc8b708934fde119e3cfb00071401e7d /hugolib/site.go | |
parent | 382c726e63b9adb8d7e38c80e03e404767925eba (diff) |
Don't inject livereload script on hugo -w
Fixes #11061
Diffstat (limited to 'hugolib/site.go')
-rw-r--r-- | hugolib/site.go | 2 |
1 files changed, 1 insertions, 1 deletions
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() } |