feat: fixes and styling

This commit is contained in:
Travis Fischer
2021-01-15 15:44:34 -05:00
parent 32b845af2b
commit 052405e8c8
7 changed files with 29 additions and 33 deletions

View File

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

View File

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