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 ? (