mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
added evaluation for toml for metadataformat date handling
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user