docs: fix navbar issues (#2253)

docs: fix navbar issues
This commit is contained in:
Henry 2024-03-06 15:12:47 +09:00 committed by GitHub
commit 9dc4ede692
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,7 +32,8 @@ export default function Layout(props) {
const location = useLocation(); const location = useLocation();
const isAllowedPath = allowedPaths.includes(location.pathname); const isAllowedPath = allowedPaths.some(path => location.pathname.startsWith(path));
return ( return (
<LayoutProvider> <LayoutProvider>
<PageMetadata title={title} description={description} /> <PageMetadata title={title} description={description} />