mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
跳到评论区
This commit is contained in:
@@ -59,7 +59,7 @@ const NotionPage = ({ post }) => {
|
||||
(zoomRef.current).attach(imgList[i])
|
||||
}
|
||||
}
|
||||
}, [router.events])
|
||||
}, [router?.events])
|
||||
|
||||
return <div id='container'>
|
||||
<NotionRenderer
|
||||
|
||||
@@ -11,12 +11,12 @@ const createFeedContent = async post => {
|
||||
}
|
||||
const blockMap = await getPostBlocks(post.id, 'rss-content')
|
||||
if (blockMap) {
|
||||
post.blockMap = blockMap
|
||||
const content = ReactDOMServer.renderToString(<NotionPage post={post} />)
|
||||
const regexExp =
|
||||
/<div class="notion-collection-row"><div class="notion-collection-row-body"><div class="notion-collection-row-property"><div class="notion-collection-column-title"><svg.*?class="notion-collection-column-title-icon">.*?<\/svg><div class="notion-collection-column-title-body">.*?<\/div><\/div><div class="notion-collection-row-value">.*?<\/div><\/div><\/div><\/div>/g
|
||||
return content.replace(regexExp, '')
|
||||
}
|
||||
return post.summary
|
||||
}
|
||||
|
||||
export async function generateRss(posts) {
|
||||
|
||||
Reference in New Issue
Block a user