diff --git a/components/post/Post.tsx b/components/post/Post.tsx index 9a7d001..e9a59a5 100644 --- a/components/post/Post.tsx +++ b/components/post/Post.tsx @@ -11,16 +11,8 @@ type PostProps = { } export function Post({ post, isLatest, showImageSlot }: PostProps) { - const { - title, - description, - category, - date, - coverImage, - coverImageAlt, - readingTimeText, - slug, - } = post + const { title, description, category, date, coverImage, coverImageAlt, readingTimeText, slug } = + post if (!title || !description || !date) { return null @@ -30,7 +22,7 @@ export function Post({ post, isLatest, showImageSlot }: PostProps) { return (
- {(isLatest || showImageSlot) && ( + {((isLatest && coverImage) || showImageSlot) && (
{coverImage && }