--- import { type CollectionEntry } from "astro:content"; import dayjs from "dayjs"; type Props = { readonly post: CollectionEntry<"blog">; }; const { post } = Astro.props; const { remarkPluginFrontmatter } = await post.render(); const formattedDate = dayjs(post.data.pubDate.toString()).format("MMMM DD, YYYY"); --- {formattedDate} • {remarkPluginFrontmatter.minutesRead} {post.data.title} {post.data.description}
{post.data.description}