From 16455c04de288afc29930ed5e2f67736743e706d Mon Sep 17 00:00:00 2001 From: emengweb Date: Wed, 8 Nov 2023 14:27:48 +0800 Subject: [PATCH] Seach Add Support post.summary --- themes/nav/components/SearchInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/nav/components/SearchInput.js b/themes/nav/components/SearchInput.js index 45dfc4e9..2e8b640e 100755 --- a/themes/nav/components/SearchInput.js +++ b/themes/nav/components/SearchInput.js @@ -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) { // 删除