Skip to content

Commit

Permalink
fix(theme): hide local nav on home page
Browse files Browse the repository at this point in the history
fixes #2312

Co-authored-by: zonemeen <994718917@qq.com>
  • Loading branch information
brc-dd and zonemeen committed Apr 30, 2023
1 parent b24acc6 commit f07587a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/theme-default/components/VPLocalNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f07587a

Please sign in to comment.