Skip to content

Commit 8731459

Browse files
committed
feat: add suggestions num config
1 parent 241f91e commit 8731459

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/default-theme/SearchBox.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default {
5151
return
5252
}
5353
54-
const max = 5
54+
const max = this.$site.themeConfig.searchBox.suggestionsMax || 5
5555
const { pages } = this.$site
5656
const localePath = this.$localePath
5757
const matches = item => (

0 commit comments

Comments
 (0)