Do not shout about missing baseURL if relativeURLs is set

This commit is contained in:
bep 2015-05-16 15:42:10 +02:00
parent 6b5ed88cde
commit bee9718ac1

View file

@ -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.")
}