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

@ -0,0 +1,20 @@
hugo server --renderToDisk --disableLiveReload &
waitServer
! grep 'livereload' public/index.html
stopServer
! stderr .
-- hugo.toml --
baseURL = "http://example.org/"
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
-- layouts/index.html --
<html>
<head>
</head>
<body>
Home.
</body>
</html>

View file

@ -0,0 +1,21 @@
hugo server --renderToDisk &
waitServer
! grep 'livereload' public/index.html
stopServer
! stderr .
-- hugo.toml --
baseURL = "http://example.org/"
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
disableLiveReload = true
-- layouts/index.html --
<html>
<head>
</head>
<body>
Home.
</body>
</html>