hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit bee9718ac16ee940eb2a0c7feb28507c134a78bf
parent 6b5ed88cdeeed8a35265c8613f39697b8db32e51
Author: bep <bjorn.erik.pedersen@gmail.com>
Date:   Sat, 16 May 2015 15:42:10 +0200

Do not shout about missing baseURL if relativeURLs is set

Diffstat:
Mcommands/hugo.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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.")
 	}