Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/create
diff options
context:
space:
mode:
authorJoel Scoble <joel.scoble@outlook.com>2014-08-18 07:02:52 +0400
committerspf13 <steve.francia@gmail.com>2014-08-18 20:01:50 +0400
commitb10dea2955093ef82ff8707c4bdbc442d3ae1edb (patch)
tree26ce0ce299abdeeb39273d59bc3c0c1adb6dca01 /create
parent27c0ec3163c0533626ae912d65808db70bddd3e7 (diff)
added evaluation for toml for metadataformat date handling
Diffstat (limited to 'create')
-rw-r--r--create/content.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/create/content.go b/create/content.go
index 01a1c9aac..aea84c517 100644
--- a/create/content.go
+++ b/create/content.go
@@ -90,7 +90,7 @@ func NewContent(kind, name string) (err error) {
return err
}
- if x := viper.GetString("MetaDataFormat"); x == "json" || x == "yaml" {
+ if x := viper.GetString("MetaDataFormat"); x == "json" || x == "yaml" || x == "toml" {
newmetadata["date"] = time.Now().Format(time.RFC3339)
}