fix: export + import tags in storage events

This commit is contained in:
NGPixel
2019-10-27 15:56:39 -04:00
parent 692e5ca0bd
commit 28fdf14002
3 changed files with 8 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ module.exports = {
['description', page.description],
['published', page.isPublished.toString()],
['date', page.updatedAt],
['tags', '']
['tags', page.tags ? page.tags.map(t => t.tag).join(', ') : '']
]
const inject = {
'markdown': '---\n' + meta.map(mt => `${mt[0]}: ${mt[1]}`).join('\n') + '\n---\n\n' + page.content,