diff options
author | spf13 <[email protected]> | 2014-10-16 20:20:09 -0400 |
---|---|---|
committer | spf13 <[email protected]> | 2014-10-16 20:20:09 -0400 |
commit | 5dfc1dedb8ac53b7a2d3823d06808ae86f90b3d9 (patch) | |
tree | e90f9cfbcc920685dd9bceecd1925abec81ae0c0 /create/content.go | |
parent | 24bbfe7d32fe151487ff87394433622e3f69eee4 (diff) | |
download | hugo-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.go | 2 |
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 { |