Merge pull request #59 from timlrx/feat/pagination

Feat/pagination
This commit is contained in:
Timothy authored and GitHub committed 2021-05-29 17:04:05 +08:00
commit 654589b5cc
8 files changed
+185 -108

No files matched your search

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