fix: import error on date title

pull/6109/head
k k 2 years ago
parent 2e8585478f
commit dc8e3e5a65

@ -199,7 +199,10 @@ module.exports = class Page extends Model {
result = frontmatterRegex.markdown.exec(raw)
if (result[2]) {
return {
...yaml.safeLoad(result[2]),
...yaml.safeLoad(result[2], {
json: true,
schema: yaml.CORE_SCHEMA
}),
content: result[3]
}
} else {

Loading…
Cancel
Save