diff options
author | Bjørn Erik Pedersen <[email protected]> | 2023-07-19 09:23:48 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-07-19 19:50:37 +0200 |
commit | f1a061e9ed6d9fffab5db9ae693e23ebe3b0cd19 (patch) | |
tree | 6b590e21aecd597e66a79048e32c2bcb1ad859f2 /testscripts | |
parent | 2f11e673c5edde9d254cf65f918c8e57d394ed12 (diff) | |
download | hugo-f1a061e9ed6d9fffab5db9ae693e23ebe3b0cd19.tar.gz hugo-f1a061e9ed6d9fffab5db9ae693e23ebe3b0cd19.zip |
Re-instate disableLiveReload as a config option (and not just a flag)
Closes #11259
Diffstat (limited to 'testscripts')
-rw-r--r-- | testscripts/commands/server_disablelivereload.txt | 20 | ||||
-rw-r--r-- | testscripts/commands/server_disablelivereload__config.txt | 21 |
2 files changed, 41 insertions, 0 deletions
diff --git a/testscripts/commands/server_disablelivereload.txt b/testscripts/commands/server_disablelivereload.txt new file mode 100644 index 000000000..6b1cd66cb --- /dev/null +++ b/testscripts/commands/server_disablelivereload.txt @@ -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>
\ No newline at end of file diff --git a/testscripts/commands/server_disablelivereload__config.txt b/testscripts/commands/server_disablelivereload__config.txt new file mode 100644 index 000000000..fe49ff247 --- /dev/null +++ b/testscripts/commands/server_disablelivereload__config.txt @@ -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>
\ No newline at end of file |