mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
Do not shout about missing baseURL if relativeURLs is set
This commit is contained in:
@@ -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.")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user