mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-13 15:09:47 +00:00
.
This commit is contained in:
@@ -3,6 +3,7 @@ import Head from 'next/head'
|
||||
import Link from 'next/link'
|
||||
import { useRouter } from 'next/router'
|
||||
import { useLocalStorage, useSearchParam } from 'react-use'
|
||||
import { IconContext } from 'react-icons'
|
||||
import BodyClassName from 'react-body-classname'
|
||||
|
||||
// core notion renderer
|
||||
@@ -86,7 +87,7 @@ export const NotionPage: React.FC<types.PageProps> = ({
|
||||
!isDev && getCanonicalPageUrl(site, recordMap)(pageId)
|
||||
|
||||
return (
|
||||
<>
|
||||
<IconContext.Provider value={{ style: { verticalAlign: 'middle' } }}>
|
||||
<PageHead site={site} />
|
||||
|
||||
<Head>
|
||||
@@ -143,6 +144,6 @@ export const NotionPage: React.FC<types.PageProps> = ({
|
||||
/>
|
||||
|
||||
<CustomHtml site={site} />
|
||||
</>
|
||||
</IconContext.Provider>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -61,8 +61,8 @@
|
||||
|
||||
.social a {
|
||||
font-size: 2em;
|
||||
display: inline-block;
|
||||
padding: 0.25;
|
||||
display: inline-flex;
|
||||
padding: 0.25em;
|
||||
margin-right: 1vw;
|
||||
transition: color 250ms ease-out;
|
||||
}
|
||||
|
||||
@@ -38,6 +38,7 @@ export default class MyDocument extends Document {
|
||||
|
||||
<body>
|
||||
<Main />
|
||||
|
||||
<NextScript />
|
||||
</body>
|
||||
</Html>
|
||||
|
||||
Reference in New Issue
Block a user