--- import { APP_BLOG_CONFIG } from '~/utils/config'; import type { Post } from '~/types'; import Image from '~/components/common/Image.astro'; import { findImage } from '~/utils/images'; import { getPermalink } from '~/utils/permalinks'; export interface Props { post: Post; } const { post } = Astro.props; const image = (await findImage(post.image)); ---
{ image && ( {post.title} ) }

{ !APP_BLOG_CONFIG?.post?.isEnabled ? ( post.title ) : ( {post.title} ) }

{post.excerpt}