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

{data.title}

/{" "} {readingTime}

{ data.updatedDate && ( Updated: ) }
{ !!data.tags?.length && (
{data.tags.map((tag, i) => ( <> {/* prettier-ignore */} View more blogs with the tag {tag} {i < data.tags.length - 1 && ", "} ))}
) }