Add default commitMessage text and date generated field to Staticman config

This commit is contained in:
Michael Rose 2016-08-11 10:15:03 -04:00
parent 7aa4e3ca3d
commit 64ac7952c1

View file

@ -31,12 +31,18 @@ comments:
staticman: staticman:
allowedFields : ['name', 'email', 'url', 'message'] allowedFields : ['name', 'email', 'url', 'message']
branch : # "master", "gh-pages" branch : # "master", "gh-pages"
commitMessage : "New comment."
format : "yml" format : "yml"
moderation : true moderation : true
path : "_data/comments/{options.slug}" path : "_data/comments/{options.slug}"
requiredFields : ['name', 'email', 'message'] requiredFields : ['name', 'email', 'message']
transforms: transforms:
email : "md5" email : "md5"
generatedFields:
date:
type : "date"
options:
format : "iso8601" # "iso8601" (default), "timestamp-seconds", "timestamp-milliseconds"
atom_feed: atom_feed:
path : # blank (default) uses feed.xml path : # blank (default) uses feed.xml