Skip to content

Commit

Permalink
commands: Remove ERROR on missing baseURL
Browse files Browse the repository at this point in the history
That logic fails in multi-host mode when no baseURL is set on top level.

Fixes #4397
  • Loading branch information
bep committed Feb 21, 2018
1 parent 8dc77b8 commit 55bd46a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions commands/hugo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 55bd46a

Please sign in to comment.