From ae719754940392aeef7cd0ce4c114c500ef8515b Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Sat, 30 Jan 2021 21:31:17 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/NotionPage.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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