mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-05 23:16:52 +00:00
修复部分NOTION_CONFIG读取问题
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
import NotionIcon from '@/components/NotionIcon'
|
||||
import NotionPage from '@/components/NotionPage'
|
||||
import { siteConfig } from '@/lib/config'
|
||||
import { useGlobal } from '@/lib/global'
|
||||
import Link from 'next/link'
|
||||
|
||||
const BlogPost = ({ post }) => {
|
||||
const showPreview = siteConfig('POST_LIST_PREVIEW') && post.blockMap
|
||||
const { NOTION_CONFIG } = useGlobal()
|
||||
const showPreview =
|
||||
siteConfig('POST_LIST_PREVIEW', false, NOTION_CONFIG) && post?.blockMap
|
||||
|
||||
return (
|
||||
<Link href={post?.href}>
|
||||
|
||||
Reference in New Issue
Block a user