mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-13 23:16:47 +00:00
fix: minor bug fixes and updating next to canary
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import * as React from 'react'
|
||||
import Head from 'next/head'
|
||||
import Link from 'next/link'
|
||||
import { useRouter } from 'next/router'
|
||||
import { useLocalStorage, useSearchParam } from 'react-use'
|
||||
import BodyClassName from 'react-body-classname'
|
||||
@@ -111,6 +112,32 @@ export const NotionPage: React.FC<types.PageProps> = ({
|
||||
|
||||
<NotionRenderer
|
||||
bodyClassName={styles.notion}
|
||||
components={{
|
||||
pageLink: ({
|
||||
href,
|
||||
as,
|
||||
passHref,
|
||||
prefetch,
|
||||
replace,
|
||||
scroll,
|
||||
shallow,
|
||||
locale,
|
||||
...props
|
||||
}) => (
|
||||
<Link
|
||||
href={href}
|
||||
as={as}
|
||||
passHref={passHref}
|
||||
prefetch={prefetch}
|
||||
replace={replace}
|
||||
scroll={scroll}
|
||||
shallow={shallow}
|
||||
locale={locale}
|
||||
>
|
||||
<a {...props} />
|
||||
</Link>
|
||||
)
|
||||
}}
|
||||
recordMap={recordMap}
|
||||
fullPage={!isLiteMode}
|
||||
darkMode={isDarkMode}
|
||||
|
||||
@@ -45,7 +45,7 @@ export const notionRootPageId = getEnv('NOTION_ROOT_PAGE_ID')
|
||||
export const siteName = getEnv('SITE_NAME', 'Transitive Bullshit')
|
||||
export const siteDesc = getEnv(
|
||||
'SITE_DESC',
|
||||
'Personal blog and portfolio of Travis Fischer aka Transitive Bullshit.'
|
||||
'Personal site of Travis Fischer aka Transitive Bullshit.'
|
||||
)
|
||||
export const siteImage = getEnv('SITE_IMAGE', '/social.jpg')
|
||||
export const siteFavicon = getEnv('SITE_FAVICON', '/favicon.png')
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "transitive-bullshit",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"description": "Personal site of Travis Fischer using Notion as a CMS.",
|
||||
"description": "Personal site of Travis Fischer.",
|
||||
"author": "Travis Fischer <travis@transitivebullsh.it>",
|
||||
"repository": "transitive-bullshit/transitivebullsh.it",
|
||||
"license": "MIT",
|
||||
@@ -32,7 +32,7 @@
|
||||
"got": "^11.8.1",
|
||||
"is-url-superb": "^5.0.0",
|
||||
"lqip-modern": "^1.1.3",
|
||||
"next": "10.0.5",
|
||||
"next": "^10.0.6-canary.2",
|
||||
"notion-client": "^3.0.0",
|
||||
"notion-types": "^3.0.0",
|
||||
"notion-utils": "^3.0.0",
|
||||
|
||||
Reference in New Issue
Block a user