Skip to content

Commit 0281ca4

Browse files
authored
Merge pull request tangly1024#1697 from tangly1024/fix-rss-content
fix-notion-page-rss
2 parents 4d04e7d + 7989fd0 commit 0281ca4

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

components/NotionPage.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ import 'katex/dist/katex.min.css'
55
import { mapImgUrl } from '@/lib/notion/mapImage'
66
import { isBrowser } from '@/lib/utils'
77
import { siteConfig } from '@/lib/config'
8+
import { NotionRenderer } from 'react-notion-x'
89

910
// Notion渲染
10-
const NotionRenderer = dynamic(() => import('react-notion-x').then(async (m) => {
11-
return m.NotionRenderer
12-
}), {
13-
ssr: false
14-
})
11+
// const NotionRenderer = dynamic(() => import('react-notion-x').then(async (m) => {
12+
// return m.NotionRenderer
13+
// }), {
14+
// ssr: false
15+
// })
1516

1617
const Code = dynamic(() =>
1718
import('react-notion-x/build/third-party/code').then(async (m) => {

themes/simple/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ import Link from 'next/link'
99
import { Style } from './style'
1010
import replaceSearchResult from '@/components/Mark'
1111
import dynamic from 'next/dynamic'
12+
import NotionPage from '@/components/NotionPage'
13+
// const NotionPage = dynamic(() => import('@/components/NotionPage'), { ssr: false });
1214

1315
// 主题组件
1416
const BlogListScroll = dynamic(() => import('./components/BlogListScroll'), { ssr: false });
1517
const BlogArchiveItem = dynamic(() => import('./components/BlogArchiveItem'), { ssr: false });
1618
const ArticleLock = dynamic(() => import('./components/ArticleLock'), { ssr: false });
17-
const NotionPage = dynamic(() => import('@/components/NotionPage'), { ssr: false });
1819
const ArticleInfo = dynamic(() => import('./components/ArticleInfo'), { ssr: false });
1920
const Comment = dynamic(() => import('@/components/Comment'), { ssr: false });
2021
const ArticleAround = dynamic(() => import('./components/ArticleAround'), { ssr: false });

0 commit comments

Comments
 (0)