shithub: hugo

Download patch

ref: bee9718ac16ee940eb2a0c7feb28507c134a78bf
parent: 6b5ed88cdeeed8a35265c8613f39697b8db32e51
author: bep <[email protected]>
date: Sat May 16 11:42:10 EDT 2015

Do not shout about missing baseURL if relativeURLs is set

--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -199,7 +199,7 @@
 		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.")
 	}