mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-06-07 23:16:46 +00:00
feat: fixes and styling
This commit is contained in:
@@ -10,7 +10,9 @@ const notion = new NotionAPI({
|
||||
export default notion
|
||||
|
||||
export async function getPage(pageId: string): Promise<ExtendedRecordMap> {
|
||||
const recordMap = await notion.getPage(pageId)
|
||||
const recordMap = await notion.getPage(pageId, {
|
||||
fetchParents: false
|
||||
})
|
||||
const blockIds = Object.keys(recordMap.block)
|
||||
|
||||
const imageUrls: string[] = blockIds
|
||||
|
||||
@@ -50,14 +50,6 @@ export interface SiteMap {
|
||||
pageIds: string[]
|
||||
}
|
||||
|
||||
export interface Breadcrumb {
|
||||
block: Block
|
||||
active: boolean
|
||||
pageId: string
|
||||
title: string
|
||||
icon: string
|
||||
}
|
||||
|
||||
export interface PreviewImage {
|
||||
url: string
|
||||
originalWidth: number
|
||||
|
||||
Reference in New Issue
Block a user