mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	Updated to work with the latest viper
This commit is contained in:
		@@ -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