feat: export creation date in dumped content (#2345)

* Export creation date in dumped content

* date_creation -> dateCreated

Co-authored-by: Joris Langlois <joris.langlois@knplabs.com>
This commit is contained in:
jaljo
2020-08-31 17:28:55 +02:00
committed by GitHub
parent ae733392f3
commit cda1f1e805
7 changed files with 46 additions and 26 deletions

View File

@@ -72,7 +72,8 @@ module.exports = {
['published', page.isPublished.toString()],
['date', page.updatedAt],
['tags', page.tags ? page.tags.map(t => t.tag).join(', ') : ''],
['editor', page.editorKey]
['editor', page.editorKey],
['dateCreated', page.createdAt],
]
switch (page.contentType) {
case 'markdown':