mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-13 23:16:47 +00:00
💢
This commit is contained in:
@@ -74,17 +74,17 @@ export default async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
|
||||
const image = await createSocialImage({
|
||||
imageUrl: mapNotionImageUrl(
|
||||
block.format?.page_cover ?? defaultPageCover,
|
||||
block.format?.page_cover || defaultPageCover,
|
||||
block
|
||||
),
|
||||
logo: mapNotionImageUrl(
|
||||
getBlockIcon(block, recordMap) ?? defaultPageIcon,
|
||||
getBlockIcon(block, recordMap) || defaultPageIcon,
|
||||
block
|
||||
),
|
||||
title: isRootPage
|
||||
? socialImageTitle
|
||||
: getBlockTitle(block, recordMap) ?? socialImageTitle,
|
||||
subtitle: getPageDescription(block, recordMap) ?? socialImageSubtitle
|
||||
: getBlockTitle(block, recordMap) || socialImageTitle,
|
||||
subtitle: getPageDescription(block, recordMap) || socialImageSubtitle
|
||||
})
|
||||
|
||||
res.setHeader(
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
margin: 0 12px;
|
||||
width: 720px;
|
||||
padding-bottom: calc(max(5vh, 64px)) !important;
|
||||
line-height: 1.75;
|
||||
line-height: 1.65;
|
||||
}
|
||||
|
||||
.index-page {
|
||||
|
||||
Reference in New Issue
Block a user