Skip to content

Commit

Permalink
Seach Add Support post.summary
Browse files Browse the repository at this point in the history
  • Loading branch information
emengweb committed Nov 8, 2023
1 parent e6a20c9 commit 16455c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/nav/components/SearchInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const SearchInput = ({ currentSearch, cRef, className }) => {
// }
for (let i = filterAllNavPages.length - 1; i >= 0; i--) {
const post = filterAllNavPages[i]
const articleInfo = post.title + ''
const articleInfo = post.title + ' ' + post.summary
const hit = articleInfo.toLowerCase().indexOf(keyword.toLowerCase()) > -1
if (!hit) {
// 删除
Expand Down

0 comments on commit 16455c0

Please sign in to comment.