Skip to content

Commit

Permalink
feat: add max search suggestions config (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakihet authored and yyx990803 committed Apr 23, 2018
1 parent 70620ba commit a16a5b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/default-theme/SearchBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export default {
return
}
const max = 5
const { pages } = this.$site
const { pages, themeConfig } = this.$site
const max = themeConfig.searchMaxSuggestions || 5
const localePath = this.$localePath
const matches = item => (
item.title &&
Expand Down

0 comments on commit a16a5b4

Please sign in to comment.