fix(theme): hide local nav on home page

fixes #2312

Co-authored-by: zonemeen <994718917@qq.com>
pull/2323/head
Divyansh Singh 2 years ago
parent b24acc6991
commit f07587af8a

@ -12,12 +12,12 @@ defineEmits<{
(e: 'open-menu'): void
}>()
const { theme } = useData()
const { theme, frontmatter } = useData()
const { hasSidebar } = useSidebar()
</script>
<template>
<div class="VPLocalNav">
<div class="VPLocalNav" v-if="frontmatter.layout !== 'home'">
<button
v-if="hasSidebar"
class="menu"

Loading…
Cancel
Save