mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 06:00:25 +03:00
Re-instate disableLiveReload as a config option (and not just a flag)
Closes #11259
This commit is contained in:
parent
2f11e673c5
commit
f1a061e9ed
5 changed files with 56 additions and 14 deletions
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>
|
Loading…
Add table
Add a link
Reference in a new issue