--- import markdownToText from "@helpers/markdownToText"; import { useTranslatedPath } from "@i18n/utils"; const tp = useTranslatedPath(Astro.url); interface Props { post: { data: { title: string; description?: string; icon?: string; tags?: string[]; }; collection: string; body: string; slug: string; }; } const { post } = Astro.props; ---

{post.data.icon && } {post.data.title}

{post.data.description || markdownToText(post.body).slice(0, 200)}

{ post.data.tags && (
{post.data.tags.map((tag) => ( {tag} ))}
) }