chore: remove redundant wordCount, readingTime contains word count

This commit is contained in:
Timothy Lin 2021-05-29 16:45:10 +08:00
parent e9befb035d
commit fd4c7033c7

View File

@ -80,7 +80,6 @@ export async function getFileBySlug(type, slug) {
return {
mdxSource,
frontMatter: {
wordCount: content.split(/\s+/gu).length,
readingTime: readingTime(content),
slug: slug || null,
fileName: fs.existsSync(mdxPath) ? `${slug}.mdx` : `${slug}.md`,