From b64a5f1d30e29bd6add9e6fbdb70ff9e67ec7036 Mon Sep 17 00:00:00 2001 From: Hossein Mehrabi Date: Mon, 10 Oct 2022 19:31:27 +0330 Subject: [PATCH] keep sidebar closed by default on landing pages. --- src/theme/Layout/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme/Layout/index.tsx b/src/theme/Layout/index.tsx index ef45ce7..cd2e5cf 100644 --- a/src/theme/Layout/index.tsx +++ b/src/theme/Layout/index.tsx @@ -6,7 +6,7 @@ import './styles.scss' export default function LayoutWrapper(props) { const isIndexPage = useIsVersionIndexPage() - const store = globalStore.useCreateStore({ hiddenSidebar: false }) + const store = globalStore.useCreateStore({ hiddenSidebar: isIndexPage }) return (