From 5b5e72478ca0914574fcf357a0885ad389879e19 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Sat, 2 Apr 2022 12:11:34 +0800 Subject: [PATCH] =?UTF-8?q?bug:=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/search/[keyword].js | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/search/[keyword].js b/pages/search/[keyword].js index 145f9a71..734bf5b4 100644 --- a/pages/search/[keyword].js +++ b/pages/search/[keyword].js @@ -24,6 +24,7 @@ const Index = props => { export async function getServerSideProps ({ params: { keyword } }) { const props = await getGlobalNotionData({ from: 'search-props', pageType: ['Post'] }) props.posts = await filterByMemCache(props.allPosts, keyword) + props.keyword = keyword return { props }