Merge pull request #140 from tangly1024/preview

bug:搜索
This commit is contained in:
tangly1024
2022-04-02 12:23:13 +08:00
committed by GitHub

View File

@@ -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
}