mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-23 01:31:51 +00:00
Updated to work with the latest viper
This commit is contained in:
parent
8afff8c7c4
commit
41adafbc3e
1 changed files with 4 additions and 1 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue