diff --git a/src/client/theme-default/Layout.vue b/src/client/theme-default/Layout.vue index ffaf6b9c..a18fb9c9 100644 --- a/src/client/theme-default/Layout.vue +++ b/src/client/theme-default/Layout.vue @@ -22,6 +22,7 @@ watch(() => route.path, closeSidebar) useCloseSidebarOnEscape(isSidebarOpen, closeSidebar) provide('close-sidebar', closeSidebar) +provide('is-sidebar-open', isSidebarOpen) const { frontmatter } = useData() diff --git a/src/client/theme-default/components/VPSidebarLink.vue b/src/client/theme-default/components/VPSidebarLink.vue index 00775138..4052f2f5 100644 --- a/src/client/theme-default/components/VPSidebarLink.vue +++ b/src/client/theme-default/components/VPSidebarLink.vue @@ -1,11 +1,12 @@