mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02:00
Re-instate disableLiveReload as a config option (and not just a flag)
Closes #11259
This commit is contained in:
20
testscripts/commands/server_disablelivereload.txt
Normal file
20
testscripts/commands/server_disablelivereload.txt
Normal 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>
|
21
testscripts/commands/server_disablelivereload__config.txt
Normal file
21
testscripts/commands/server_disablelivereload__config.txt
Normal 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>
|
Reference in New Issue
Block a user