From 81cccb7f6e07c1e44bf8448bc82aa796221b547d Mon Sep 17 00:00:00 2001 From: Thomas Osmonson Date: Thu, 13 Aug 2020 08:56:11 -0500 Subject: [PATCH] fix: enable search --- src/components/mdx/md-contents.tsx | 2 +- src/components/page-top.tsx | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/mdx/md-contents.tsx b/src/components/mdx/md-contents.tsx index 62d975d7..a9ae8eb3 100644 --- a/src/components/mdx/md-contents.tsx +++ b/src/components/mdx/md-contents.tsx @@ -266,7 +266,7 @@ export const MDContents: React.FC = ({ pageTop: PageTop = null, headings, c display={['none', 'none', 'none', 'block']} > - {/**/} + {headings?.length ? : null} diff --git a/src/components/page-top.tsx b/src/components/page-top.tsx index a5c47a19..ea310d4b 100644 --- a/src/components/page-top.tsx +++ b/src/components/page-top.tsx @@ -30,11 +30,11 @@ export const PageTop: React.FC = React.memo( headings, })} - {/*{isHome ? (*/} - {/* */} - {/* */} - {/* */} - {/*) : null}*/} + {isHome ? ( + + + + ) : null} {description ? (