--- import { APP_BLOG } from 'astrowind: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); const link = APP_BLOG?.post?.isEnabled ? getPermalink(post.permalink, 'post') : ''; ---
{ image && (link ? ( {post.title} ) : ( {post.title} )) }

{ link ? ( {post.title} ) : ( post.title ) }

{post.excerpt}