aboutsummaryrefslogtreecommitdiffhomepage
path: root/config/allconfig
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2023-07-19 09:23:48 +0200
committerBjørn Erik Pedersen <[email protected]>2023-07-19 19:50:37 +0200
commitf1a061e9ed6d9fffab5db9ae693e23ebe3b0cd19 (patch)
tree6b590e21aecd597e66a79048e32c2bcb1ad859f2 /config/allconfig
parent2f11e673c5edde9d254cf65f918c8e57d394ed12 (diff)
downloadhugo-f1a061e9ed6d9fffab5db9ae693e23ebe3b0cd19.tar.gz
hugo-f1a061e9ed6d9fffab5db9ae693e23ebe3b0cd19.zip
Re-instate disableLiveReload as a config option (and not just a flag)
Closes #11259
Diffstat (limited to 'config/allconfig')
-rw-r--r--config/allconfig/allconfig.go14
1 files changed, 8 insertions, 6 deletions
diff --git a/config/allconfig/allconfig.go b/config/allconfig/allconfig.go
index a0d1d0ae8..9960c28f3 100644
--- a/config/allconfig/allconfig.go
+++ b/config/allconfig/allconfig.go
@@ -57,12 +57,11 @@ type InternalConfig struct {
// Server mode?
Running bool
- Quiet bool
- Verbose bool
- Clock string
- Watch bool
- DisableLiveReload bool
- LiveReloadPort int
+ Quiet bool
+ Verbose bool
+ Clock string
+ Watch bool
+ LiveReloadPort int
}
// All non-params config keys for language.
@@ -454,6 +453,9 @@ type RootConfig struct {
// Disable the injection of the Hugo generator tag on the home page.
DisableHugoGeneratorInject bool
+ // Disable live reloading in server mode.
+ DisableLiveReload bool
+
// Enable replacement in Pages' Content of Emoji shortcodes with their equivalent Unicode characters.
// <docsmeta>{"identifiers": ["Content", "Unicode"] }</docsmeta>
EnableEmoji bool