Seach Add Support post.summary

This commit is contained in:
emengweb
2023-11-08 14:27:48 +08:00
parent e6a20c979b
commit 16455c04de

View File

@@ -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) {
// 删除