This commit is contained in:
Travis Fischer
2021-01-16 17:09:08 -05:00
parent 74d43e1b24
commit 60d52e9350
2 changed files with 22 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
import * as React from 'react'
import Head from 'next/head'
import Link from 'next/link'
import cs from 'classnames'
import { useRouter } from 'next/router'
import { useLocalStorage, useSearchParam } from 'react-use'
import { IconContext } from 'react-icons'
@@ -104,7 +105,10 @@ export const NotionPage: React.FC<types.PageProps> = ({
{isLiteMode && <BodyClassName className='notion-lite' />}
<NotionRenderer
bodyClassName={styles.notion}
bodyClassName={cs(
styles.notion,
pageId === site.rootNotionPageId && 'index-page'
)}
components={{
pageLink: ({
href,