From: Bjørn Erik Pedersen Date: Wed, 21 Feb 2018 09:30:00 +0000 (+0100) Subject: commands: Remove ERROR on missing baseURL X-Git-Tag: v0.37~12 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=55bd46a63;p=brevno-suite%2Fhugo commands: Remove ERROR on missing baseURL That logic fails in multi-host mode when no baseURL is set on top level. Fixes #4397 --- diff --git a/commands/hugo.go b/commands/hugo.go index 31df0d24..a5c219e3 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -346,10 +346,6 @@ func InitializeConfig(running bool, doWithCommandeer func(c *commandeer) error, config.Set("logI18nWarnings", logI18nWarnings) - if !config.GetBool("relativeURLs") && config.GetString("baseURL") == "" { - cfg.Logger.ERROR.Println("No 'baseURL' set in configuration or as a flag. Features like page menus will not work without one.") - } - if theme != "" { config.Set("theme", theme) }