Do not shout about missing baseURL if relativeURLs is set

This commit is contained in:
bep committed 2015-05-16 15:42:15 +02:00
1 parent 6b5ed88cde
commit bee9718ac1
1 file changed
+1 -1
+1 -1
View File
@@ -199,7 +199,7 @@ func InitializeConfig() {
viper.Set("BaseURL", BaseURL) 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.") jww.ERROR.Println("No 'baseurl' set in configuration or as a flag. Features like page menus will not work without one.")
} }