mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 16:17:21 +00:00
1 parent
43e48a8989
commit
5e34ae6199
1 file changed
+4
@@ -182,6 +182,10 @@ func InitializeConfig() {
|
|||||||
viper.Set("BaseUrl", BaseUrl)
|
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 != "" {
|
if Theme != "" {
|
||||||
viper.Set("theme", Theme)
|
viper.Set("theme", Theme)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user