--- import markdownToText from "@helpers/markdownToText"; import { useTranslatedPath } from "@i18n/utils"; import type { InferEntrySchema } from "astro:content"; const tp = useTranslatedPath(Astro.url); interface Props { post: { data: InferEntrySchema<"blog">; collection: string; body?: string; id: string; }; } const { post } = Astro.props; ---
{post.data.description || markdownToText(post?.body || "").slice(0, 200)}
{ post.data.tags && (