mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-23 07:26:47 +00:00
NotionPage image Link 优化
This commit is contained in:
@@ -3,6 +3,8 @@ import dynamic from 'next/dynamic'
|
|||||||
import mediumZoom from 'medium-zoom'
|
import mediumZoom from 'medium-zoom'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { isBrowser } from '@/lib/utils'
|
import { isBrowser } from '@/lib/utils'
|
||||||
|
import Image from 'next/image'
|
||||||
|
import Link from 'next/link'
|
||||||
|
|
||||||
const Code = dynamic(() =>
|
const Code = dynamic(() =>
|
||||||
import('react-notion-x/build/third-party/code').then((m) => m.Code), { ssr: false }
|
import('react-notion-x/build/third-party/code').then((m) => m.Code), { ssr: false }
|
||||||
@@ -75,7 +77,9 @@ const NotionPage = ({ post }) => {
|
|||||||
Collection,
|
Collection,
|
||||||
Equation,
|
Equation,
|
||||||
Modal,
|
Modal,
|
||||||
Pdf
|
Pdf,
|
||||||
|
nextImage: Image,
|
||||||
|
nextLink: Link
|
||||||
}} />
|
}} />
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user