mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-13 15:09:47 +00:00
📗
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user