chore: remove redundant wordCount, readingTime contains word count
This commit is contained in:
parent
e9befb035d
commit
fd4c7033c7
@ -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`,
|
||||
|
Loading…
x
Reference in New Issue
Block a user