hugo

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

git clone git://git.shimmy1996.com/hugo.git
commit 5e34ae6199da8a579a0e5589483172e140217cc7
parent 43e48a8989b04f9a434ffa6ff21414adcbb72544
Author: bep <bjorn.erik.pedersen@gmail.com>
Date:   Fri,  6 Feb 2015 10:39:54 +0100

Log ERROR on missing baseurl

Fixes #877

Diffstat:
Mcommands/hugo.go | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/commands/hugo.go b/commands/hugo.go
@@ -182,6 +182,10 @@ func InitializeConfig() {
 		viper.Set("BaseUrl", BaseUrl)
 	}
 
+	if viper.GetString("BaseUrl") == "" {
+		jww.ERROR.Println("No 'baseurl' set in configuration or as a flag. Features like page menus will not work without one.")
+	}
+
 	if Theme != "" {
 		viper.Set("theme", Theme)
 	}