mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-18 07:26:43 +00:00
🤜
This commit is contained in:
@@ -8,7 +8,8 @@ import { getPageDescription } from '../../lib/get-page-description'
|
||||
import { getPage } from '../../lib/notion'
|
||||
import * as types from '../../lib/types'
|
||||
import {
|
||||
socialImageDescription,
|
||||
socialImageTitle,
|
||||
socialImageSubtitle,
|
||||
defaultPageCover,
|
||||
defaultPageIcon,
|
||||
siteName
|
||||
@@ -74,12 +75,12 @@ export default async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
block.format?.page_cover ?? defaultPageCover,
|
||||
block
|
||||
),
|
||||
title: getBlockTitle(block, recordMap) ?? siteName,
|
||||
logo: mapNotionImageUrl(
|
||||
getBlockIcon(block, recordMap) ?? defaultPageIcon,
|
||||
block
|
||||
),
|
||||
subtitle: getPageDescription(block, recordMap) ?? socialImageDescription
|
||||
title: getBlockTitle(block, recordMap) ?? socialImageTitle,
|
||||
subtitle: getPageDescription(block, recordMap) ?? socialImageSubtitle
|
||||
})
|
||||
|
||||
res.setHeader(
|
||||
|
||||
@@ -17,7 +17,8 @@ export const siteDomain = 'transitivebullsh.it'
|
||||
export const siteDescription =
|
||||
'Personal site of Travis Fischer aka Transitive Bullshit'
|
||||
export const siteFavicon = `https://${siteDomain}/favicon.png`
|
||||
export const socialImageDescription = '(Travis Fischer)'
|
||||
export const socialImageTitle = 'Transitive Bullshit'
|
||||
export const socialImageSubtitle = 'Hello World 👋'
|
||||
|
||||
// default notion values for site-wide consistency (may be overridden on a per-page basis)
|
||||
export const defaultPageIcon =
|
||||
|
||||
Reference in New Issue
Block a user