This commit is contained in:
Travis Fischer
2022-04-22 17:29:04 -04:00
parent 4641fd6708
commit 7b1fc5fe7b
2 changed files with 18 additions and 2 deletions

View File

@@ -195,6 +195,7 @@ export const NotionPage: React.FC<types.PageProps> = ({
// parsePageId(block?.id) === parsePageId(site?.rootNotionPageId)
const isBlogPost =
block?.type === 'page' && block?.parent_table === 'collection'
const showTableOfContents = !!isBlogPost
const minTableOfContentsItems = 3