summaryrefslogtreecommitdiffstats
path: root/hugolib/config.go
diff options
context:
space:
mode:
authortycho garen <garen@tychoish.com>2013-07-06 19:36:30 -0400
committertycho garen <garen@tychoish.com>2013-07-06 22:32:50 -0400
commita7f5f97bc2c8941cbe9ade740e3c0e54202d8613 (patch)
tree96f3933a3bc7788852807b4a1c085094f2c2b45a /hugolib/config.go
parentf875577197c307116f11c33be0d3f1f95594a500 (diff)
sanity: move from json to yaml
Diffstat (limited to 'hugolib/config.go')
-rw-r--r--hugolib/config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/config.go b/hugolib/config.go
index abb25046a..84d6ce966 100644
--- a/hugolib/config.go
+++ b/hugolib/config.go
@@ -14,7 +14,7 @@
package hugolib
import (
- "encoding/json"
+ "launchpad.net/goyaml"
"fmt"
"io/ioutil"
"os"
@@ -55,7 +55,7 @@ func SetupConfig(cfgfile *string, path *string) *Config {
file, err := ioutil.ReadFile(configPath)
if err == nil {
- if err := json.Unmarshal(file, &c); err != nil {
+ if err := goyaml.Unmarshal(file, &c); err != nil {
fmt.Printf("Error parsing config: %s", err)
os.Exit(1)
}