Skip to content

Commit

Permalink
feat($theme-default): disable search box via frontmatter (close: #1287)…
Browse files Browse the repository at this point in the history
… (#1288)
  • Loading branch information
andezzat authored and ulivz committed Feb 13, 2019
1 parent 49f036d commit 54e9eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vuepress/theme-default/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
v-if="isAlgoliaSearch"
:options="algolia"
/>
<SearchBox v-else-if="$site.themeConfig.search !== false"/>
<SearchBox v-else-if="$site.themeConfig.search !== false && $page.frontmatter.search !== false"/>
<NavLinks class="can-hide"/>
</div>
</header>
Expand Down

0 comments on commit 54e9eb0

Please sign in to comment.