diff --git a/components/NotionPage.tsx b/components/NotionPage.tsx index a395eb0..71be41b 100644 --- a/components/NotionPage.tsx +++ b/components/NotionPage.tsx @@ -12,7 +12,7 @@ import useDarkMode from 'use-dark-mode' import { NotionRenderer, Code, Collection, CollectionRow } from 'react-notion-x' // utils -import { getBlockTitle, parsePageId } from 'notion-utils' +import { getBlockTitle } from 'notion-utils' import { mapPageUrl, getCanonicalPageUrl } from 'lib/map-page-url' import { mapNotionImageUrl } from 'lib/map-image-url' import { getPageDescription } from 'lib/get-page-description' @@ -113,8 +113,8 @@ export const NotionPage: React.FC = ({ const canonicalPageUrl = !config.isDev && getCanonicalPageUrl(site, recordMap)(pageId) - const isRootPage = - parsePageId(block.id) === parsePageId(site.rootNotionPageId) + // const isRootPage = + // parsePageId(block.id) === parsePageId(site.rootNotionPageId) const isBlogPost = block.type === 'page' && block.parent_table === 'collection' const showTableOfContents = !!isBlogPost