Used MDX for pages to include components

This commit is contained in:
2023-09-03 01:06:30 +02:00
parent ff63fa888b
commit 412ab0810d
7 changed files with 81 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ export default function HomePage(
export const getStaticProps = async ({ params }) => {
const tinaProps = await client.queries.contentQuery({
relativePath: `${ params.filename }.md`
relativePath: `${ params.filename }.mdx`
});
const props = {
...tinaProps,