Skip to content

Commit 1e15001

Browse files
authored
feat(theme): allow hiding navbar on specific pages via frontmatter (#2565)
1 parent a3df617 commit 1e15001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/theme-default/Layout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ provide('hero-image-slot-exists', heroImageSlotExists)
3939
<slot name="layout-top" />
4040
<VPSkipLink />
4141
<VPBackdrop class="backdrop" :show="isSidebarOpen" @click="closeSidebar" />
42-
<VPNav>
42+
<VPNav v-if="frontmatter.navbar !== false">
4343
<template #nav-bar-title-before><slot name="nav-bar-title-before" /></template>
4444
<template #nav-bar-title-after><slot name="nav-bar-title-after" /></template>
4545
<template #nav-bar-content-before><slot name="nav-bar-content-before" /></template>

0 commit comments

Comments
 (0)