mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Do not shout about missing baseURL if relativeURLs is set
This commit is contained in:
parent
6b5ed88cde
commit
bee9718ac1
1 changed files with 1 additions and 1 deletions
|
@ -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.")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue