From: bep Date: Sat, 16 May 2015 13:42:10 +0000 (+0200) Subject: Do not shout about missing baseURL if relativeURLs is set X-Git-Tag: v0.14~41 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=bee9718ac16ee940eb2a0c7feb28507c134a78bf;p=brevno-suite%2Fhugo Do not shout about missing baseURL if relativeURLs is set --- diff --git a/commands/hugo.go b/commands/hugo.go index ce7820d5..067d82cc 100644 --- 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.") }