diff --git a/themes/simple/components/BlogItem.js b/themes/simple/components/BlogItem.js index 87e2d879..4dd59082 100644 --- a/themes/simple/components/BlogItem.js +++ b/themes/simple/components/BlogItem.js @@ -9,12 +9,12 @@ 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 showPreview = siteConfig('POST_LIST_PREVIEW') && post.blockMap + 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