Merge pull request #59 from timlrx/feat/pagination

Feat/pagination
This commit is contained in:
Timothy
2021-05-29 17:04:05 +08:00
committed by GitHub
8 changed files with 185 additions and 108 deletions

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`,