+
diff --git a/themes/simple/components/BlogItem.js b/themes/simple/components/BlogItem.js index befcd3d8..87e2d879 100644 --- a/themes/simple/components/BlogItem.js +++ b/themes/simple/components/BlogItem.js @@ -6,13 +6,15 @@ import { siteConfig } from '@/lib/config' import LazyImage from '@/components/LazyImage' import { checkContainHttp, sliceUrlFromHttp } from '@/lib/utils' import NotionIcon from '@/components/NotionIcon' +import NotionPage from '@/components/NotionPage' export const BlogItem = props => { - const { post } = props - const showPageCover = siteConfig('SIMPLE_POST_COVER_ENABLE', false, CONFIG) - const url = checkContainHttp(post.slug) ? sliceUrlFromHttp(post.slug) : `${siteConfig('SUB_PATH', '')}/${post.slug}` + const { post } = props + const showPageCover = siteConfig('SIMPLE_POST_COVER_ENABLE', false, CONFIG) + const url = checkContainHttp(post.slug) ? sliceUrlFromHttp(post.slug) : `${siteConfig('SUB_PATH', '')}/${post.slug}` + const showPreview = siteConfig('POST_LIST_PREVIEW') && post.blockMap - return