mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 15:09:22 +00:00
搜索
This commit is contained in:
@@ -64,6 +64,7 @@ export async function getStaticProps ({ params: { keyword } }) {
|
||||
const tagContent = post.tags ? post.tags.join(' ') : ''
|
||||
const categoryContent = post.category ? post.category.join(' ') : ''
|
||||
let indexContent = [post.title, post.summary, tagContent, categoryContent]
|
||||
console.log('搜索是否命中缓存', page !== null)
|
||||
if (page !== null) {
|
||||
const contentIds = Object.keys(page.block)
|
||||
contentIds.forEach(id => {
|
||||
|
||||
Reference in New Issue
Block a user