From f1a061e9ed6d9fffab5db9ae693e23ebe3b0cd19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Wed, 19 Jul 2023 09:23:48 +0200 Subject: Re-instate disableLiveReload as a config option (and not just a flag) Closes #11259 --- config/allconfig/allconfig.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'config') 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. // {"identifiers": ["Content", "Unicode"] } EnableEmoji bool -- cgit v1.2.3