mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 04:22:06 -05:00
parent
382c726e63
commit
a191b38ac8
2 changed files with 2 additions and 1 deletions
|
@ -1064,7 +1064,7 @@ func (s *Site) renderAndWritePage(statCounter *uint64, name string, targetPath s
|
||||||
pd.AbsURLPath = s.absURLPath(targetPath)
|
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()
|
pd.LiveReloadBaseURL = s.Conf.BaseURLLiveReload().URL()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@ grep 'P1start' public/p1/index.html
|
||||||
replace content/p1.md 'P1start' 'P1end'
|
replace content/p1.md 'P1start' 'P1end'
|
||||||
sleep 2
|
sleep 2
|
||||||
grep 'P1end' public/p1/index.html
|
grep 'P1end' public/p1/index.html
|
||||||
|
! grep 'livereload' public/p1/index.html
|
||||||
|
|
||||||
stop
|
stop
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue