aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/cv.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/cv.tsx')
-rw-r--r--src/pages/cv.tsx11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/pages/cv.tsx b/src/pages/cv.tsx
index 92c3e9e..f0e1e8b 100644
--- a/src/pages/cv.tsx
+++ b/src/pages/cv.tsx
@@ -1,4 +1,5 @@
import type { GetStaticProps } from 'next';
+import dynamic from 'next/dynamic';
import Head from 'next/head';
import NextImage from 'next/image';
import React, { type ReactNode } from 'react';
@@ -12,7 +13,6 @@ import {
Page,
PageHeader,
PageSidebar,
- TocWidget,
PageBody,
} from '../components';
import { mdxComponents } from '../components/mdx';
@@ -24,6 +24,13 @@ import { getAboutPageGraph, getSchemaFrom } from '../utils/helpers';
import { loadTranslation } from '../utils/helpers/server';
import { useBreadcrumbs, useHeadingsTree } from '../utils/hooks';
+const Toc = dynamic(
+ async () => import('../components').then((mod) => mod.TocWidget),
+ {
+ ssr: false,
+ }
+);
+
const DownloadLink = (chunks: ReactNode) => (
<Link href={data.file} isDownload>
{chunks}
@@ -133,7 +140,7 @@ const CVPage: NextPageWithLayout = () => {
}}
/>
<PageSidebar>
- <TocWidget
+ <Toc
heading={<Heading level={3}>{messages.toc.title}</Heading>}
tree={tree}
/>