--- import { type CollectionEntry, getCollection } from "astro:content"; import { Image } from "astro:assets"; import { SITE } from "@/siteConfig.ts"; import BaseLayout from "@/layouts/BaseLayout.astro"; import SeoPost from "@/components/SeoPost.astro"; import { formatDate } from "@/lib/util"; interface Props { entry: CollectionEntry<"blog">; } export async function getStaticPaths() { const blog = await getCollection("blog"); return blog.map((entry) => ({ params: { slug: entry.slug }, props: { entry }, })); } const { entry } = Astro.props; const { Content } = await entry.render(); ---
{`← ${SITE.name}`} { entry.data.image && ( {entry.data.imageAlt ) }

{entry.data.title}

{formatDate(entry.data.publicationDate)}


{`← ${SITE.name}`}