--- 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.icon?.length > 3 ? ( ) : post.data.icon?.length ? ( {post.data.icon} ) : null } {post.data.title}

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

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