fix(theme): fixed auto frontmatter createTime

This commit is contained in:
pengzhanbo 2023-02-26 16:50:36 +08:00
parent 86ddff5966
commit f573b62633

View File

@ -37,7 +37,7 @@ export default function (
if (author) return author
return localeOption.avatar?.name || pkg.author || ''
},
createTime(formatTime: string, _: any, { createTime }) {
createTime(formatTime: string, { createTime }) {
if (formatTime) return formatTime
return format(new Date(createTime), 'yyyy/MM/dd hh:mm:ss')
},