added evaluation for toml for metadataformat date handling - hugo - [fork] hugo port for 9front
 (HTM) git clone git@git.drkhsh.at/hugo.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit b10dea2955093ef82ff8707c4bdbc442d3ae1edb
 (DIR) parent 27c0ec3163c0533626ae912d65808db70bddd3e7
 (HTM) Author: Joel Scoble <joel.scoble@outlook.com>
       Date:   Sun, 17 Aug 2014 22:02:52 -0500
       
       added evaluation for toml for metadataformat date handling
       
       Diffstat:
         M commands/convert.go                 |       2 +-
         M create/content.go                   |       2 +-
       
       2 files changed, 2 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/commands/convert.go b/commands/convert.go
       @@ -117,7 +117,7 @@ func convertContents(mark rune) (err error) {
                        }
        
                        // better handling of dates in formats that don't have support for them
       -                if mark == parser.FormatToLeadRune("json") || mark == parser.FormatToLeadRune("yaml") {
       +                if mark == parser.FormatToLeadRune("json") || mark == parser.FormatToLeadRune("yaml") || mark == parser.FormatToLeadRune("toml") {
                                newmetadata := cast.ToStringMap(metadata)
                                for k, v := range newmetadata {
                                        switch vv := v.(type) {
 (DIR) diff --git 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)
                }