ref: 41adafbc3e8c53475ba9a8bc8031dd4e0bf59664
parent: 8afff8c7c43d3e593313832dfa371461a0cb133b
author: spf13 <[email protected]>
date: Thu Apr 10 10:24:18 EDT 2014
Updated to work with the latest viper
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -84,7 +84,10 @@
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")