--- import { Image } from "astro:assets"; import type { CollectionEntry } from "astro:content"; import FormattedDate from "@/components/FormattedDate.astro"; import { t } from "@/i18n/translations"; interface Props { content: CollectionEntry<"post">; language?: string | undefined; } const { content: { data }, language, } = Astro.props; const dateTimeOptions: Intl.DateTimeFormatOptions = { month: "long", }; --- { data.coverImage && (
{data.coverImage.alt}
) } {data.draft ? (Draft) : null}

{data.title}

{ data.updatedDate && ( {t(language, "updated")} ) }
{ !!data.tags?.length && (
{data.tags.map((tag, i) => ( <> {/* prettier-ignore */} {t(language, "viewMoreWithTag")} {tag} {i < data.tags.length - 1 && ", "} ))}
) }