mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 16:14:59 +00:00
Updated to work with the latest viper
This commit is contained in:
1 parent
8afff8c7c4
commit
41adafbc3e
1 file changed
+4
-1
+4
-1
@@ -84,7 +84,10 @@ func init() {
|
||||
func InitializeConfig() {
|
||||
viper.SetConfigName(CfgFile)
|
||||
viper.AddConfigPath(Source)
|
||||
viper.ReadInConfig()
|
||||
err := viper.ReadInConfig()
|
||||
if err != nil {
|
||||
jww.ERROR.Println("Config not found... using only defaults, stuff may not work")
|
||||
}
|
||||
|
||||
viper.RegisterAlias("taxonomies", "indexes")
|
||||
|
||||
|
||||
Reference in new issue
Block a user