diff --git a/docs/website/components/blog/postHeader.tsx b/docs/website/components/blog/postHeader.tsx index 3976286e29..80356105aa 100644 --- a/docs/website/components/blog/postHeader.tsx +++ b/docs/website/components/blog/postHeader.tsx @@ -26,10 +26,10 @@ export default function PostHeader() { - - - - + + + +

{page.frontMatter.title}

diff --git a/docs/website/components/layout/footer.tsx b/docs/website/components/layout/footer.tsx index 0153fb9394..16e1acde67 100644 --- a/docs/website/components/layout/footer.tsx +++ b/docs/website/components/layout/footer.tsx @@ -12,28 +12,30 @@ export function Footer() { const config = useConfig() - const [SwitchDisplay, SetSwitchDisplay] = useState(false) + const [showFooter, setShowFooter] = useState(true) useEffect(() => { - if (pathname.includes('/docs')) { - SetSwitchDisplay(false) + if (pathname.includes('/build') || pathname.includes('/learn')) { + setShowFooter(false) } else { - SetSwitchDisplay(true) + setShowFooter(true) } }, [pathname]) + if (!showFooter) { + return null + } + return (