fix: minor bug fixes and updating next to canary

This commit is contained in:
Travis Fischer
2021-01-15 11:54:28 -05:00
parent b1457d5698
commit bcdc6c2814
4 changed files with 101 additions and 1407 deletions

View File

@@ -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}

View File

@@ -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')

View File

@@ -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",

1475
yarn.lock

File diff suppressed because it is too large Load Diff