Browse Source

fix: enable search

feat/enable-search
Thomas Osmonson 4 years ago
parent
commit
69b1ad53ab
  1. 2
      src/components/mdx/md-contents.tsx
  2. 10
      src/components/page-top.tsx

2
src/components/mdx/md-contents.tsx

@ -266,7 +266,7 @@ export const MDContents: React.FC<any> = ({ pageTop: PageTop = null, headings, c
display={['none', 'none', 'none', 'block']}
>
<Box position="sticky" top={0} pt={space('extra-loose')}>
{/*<Search mb={space('extra-loose')} />*/}
<Search mb={space('extra-loose')} />
{headings?.length ? <TableOfContents limit headings={headings} /> : null}
</Box>
</Box>

10
src/components/page-top.tsx

@ -30,11 +30,11 @@ export const PageTop: React.FC<PageTopProps> = React.memo(
headings,
})}
</H1>
{/*{isHome ? (*/}
{/* <Box width="100%" maxWidth="208px">*/}
{/* <Search />*/}
{/* </Box>*/}
{/*) : null}*/}
{isHome ? (
<Box width="100%" maxWidth="208px">
<Search />
</Box>
) : null}
</Flex>
{description ? (
<Box mt="40px !important">

Loading…
Cancel
Save