From 7c31de6c34cf0a755ef67c75344375b6857f09a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Bl=C3=A4ttermann?= Date: Wed, 16 Nov 2022 20:37:39 +0100 Subject: [PATCH] Refactoring --- website/pages/[slug].tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/pages/[slug].tsx b/website/pages/[slug].tsx index bf7111aa2..aa311ff03 100644 --- a/website/pages/[slug].tsx +++ b/website/pages/[slug].tsx @@ -58,7 +58,7 @@ export const getStaticProps: GetStaticProps = async ( props: { slug: args.params.slug, mdx: await serialize( - fs.readFileSync(path.join('docs', args.params.slug + '.mdx'), 'utf-8'), + fs.readFileSync(`${path.join('docs', args.params.slug)}.mdx`, 'utf-8'), { parseFrontmatter: true, mdxOptions: {