diff --git a/apps/frontend/src/pages/blog/[slug]/index.tsx b/apps/frontend/src/pages/blog/[slug]/index.tsx index 5034392..3e5ecb3 100644 --- a/apps/frontend/src/pages/blog/[slug]/index.tsx +++ b/apps/frontend/src/pages/blog/[slug]/index.tsx @@ -1,10 +1,12 @@ /* eslint-disable no-undef */ +import { Box, Skeleton } from '@mantine/core'; + import Page from '@/components/Page'; +import thumbnail from '@/public/images/thumbnails/newsletter.png'; import classes from '@/styles/blog.module.css'; import highlightClasses from '@/styles/highlight.module.css'; import fetcher from '@/utils/Fetcher'; -import { Box } from '@mantine/core'; import hljs from 'highlight.js'; import { NextPage } from 'next'; import { serverSideTranslations } from 'next-i18next/serverSideTranslations'; @@ -15,16 +17,21 @@ const Blog: NextPage = ({ data }: any) => { hljs.initHighlighting(); }, []); - if (!data) + if (data) return ( - idk -
{JSON.stringify(data, null, 2)}
+ + + + + + +
); @@ -64,6 +71,6 @@ export async function getStaticPaths() { slug: blogPost.slug, }, })), - fallback: false, + fallback: true, }; }