diff --git a/commands/hugo.go b/commands/hugo.go index ce7820d5a..067d82cce 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -199,7 +199,7 @@ func InitializeConfig() { viper.Set("BaseURL", BaseURL) } - if viper.GetString("BaseURL") == "" { + if !viper.GetBool("RelativeURLs") && viper.GetString("BaseURL") == "" { jww.ERROR.Println("No 'baseurl' set in configuration or as a flag. Features like page menus will not work without one.") }