--- import { Icon } from 'astro-icon'; import { Picture } from '@astrojs/image/components'; import PostTags from '~/components/blog/Tags.astro'; import { BLOG } from '~/config.mjs'; import type { Post } from '~/types'; import { getPermalink } from '~/utils/permalinks'; import { findImage } from '~/utils/images'; import { getFormattedDate } from '~/utils/utils'; export interface Props { post: Post; } const { post } = Astro.props; const image = await findImage(post.image); const link = !BLOG?.post?.disabled ? getPermalink(post.permalink, 'post') : ''; ---
{ image && ( ) }
{ post.category && ( <> {' '} ยท{' '} {post.category.replaceAll('-', ' ')} ) }

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

{post.excerpt &&

{post.excerpt}

}