upstream #1
@ -80,7 +80,6 @@ export async function getFileBySlug(type, slug) {
|
|||||||
return {
|
return {
|
||||||
mdxSource,
|
mdxSource,
|
||||||
frontMatter: {
|
frontMatter: {
|
||||||
wordCount: content.split(/\s+/gu).length,
|
|
||||||
readingTime: readingTime(content),
|
readingTime: readingTime(content),
|
||||||
slug: slug || null,
|
slug: slug || null,
|
||||||
fileName: fs.existsSync(mdxPath) ? `${slug}.mdx` : `${slug}.md`,
|
fileName: fs.existsSync(mdxPath) ? `${slug}.mdx` : `${slug}.md`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user