Skip to content

Commit a16a5b4

Browse files
sakihetyyx990803
authored andcommitted
feat: add max search suggestions config (#163)
1 parent 70620ba commit a16a5b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/default-theme/SearchBox.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ export default {
5151
return
5252
}
5353
54-
const max = 5
55-
const { pages } = this.$site
54+
const { pages, themeConfig } = this.$site
55+
const max = themeConfig.searchMaxSuggestions || 5
5656
const localePath = this.$localePath
5757
const matches = item => (
5858
item.title &&

0 commit comments

Comments
 (0)