Updated to work with the latest viper - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 41adafbc3e8c53475ba9a8bc8031dd4e0bf59664
DIR parent 8afff8c7c43d3e593313832dfa371461a0cb133b
HTML Author: spf13 <steve.francia@gmail.com>
Date: Thu, 10 Apr 2014 14:24:18 -0400
Updated to work with the latest viper
Diffstat:
M commands/hugo.go | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
DIR diff --git a/commands/hugo.go b/commands/hugo.go
@@ -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")