aboutsummaryrefslogtreecommitdiffhomepage
path: root/create/content.go
diff options
context:
space:
mode:
authorspf13 <[email protected]>2014-10-16 20:20:09 -0400
committerspf13 <[email protected]>2014-10-16 20:20:09 -0400
commit5dfc1dedb8ac53b7a2d3823d06808ae86f90b3d9 (patch)
treee90f9cfbcc920685dd9bceecd1925abec81ae0c0 /create/content.go
parent24bbfe7d32fe151487ff87394433622e3f69eee4 (diff)
downloadhugo-5dfc1dedb8ac53b7a2d3823d06808ae86f90b3d9.tar.gz
hugo-5dfc1dedb8ac53b7a2d3823d06808ae86f90b3d9.zip
Big refactor of how source files are used. Also added default destination extension option.
Diffstat (limited to 'create/content.go')
-rw-r--r--create/content.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/create/content.go b/create/content.go
index 449d63b85..bb0f029dc 100644
--- a/create/content.go
+++ b/create/content.go
@@ -94,7 +94,7 @@ func NewContent(kind, name string) (err error) {
newmetadata["date"] = time.Now().Format(time.RFC3339)
}
- page.Dir = viper.GetString("sourceDir")
+ //page.Dir = viper.GetString("sourceDir")
page.SetSourceMetaData(newmetadata, parser.FormatToLeadRune(viper.GetString("MetaDataFormat")))
page.SetSourceContent(psr.Content())
if err = page.SafeSaveSourceAs(path.Join(viper.GetString("contentDir"), name)); err != nil {