mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-26 03:21:52 +00:00
commands: Remove ERROR on missing baseURL
That logic fails in multi-host mode when no baseURL is set on top level. Fixes #4397
This commit is contained in:
parent
8dc77b84a5
commit
55bd46a633
1 changed files with 0 additions and 4 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue