mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
43e48a8989
commit
5e34ae6199
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue