--- import { getEntry, type CollectionKey } from "astro:content"; interface Props { articleSlug: string; collectionName: CollectionKey; } const { articleSlug, collectionName } = Astro.props; const article = await getEntry(collectionName, articleSlug); const { Content } = await article!.render(); const articlePrettyName = article!.id.split("/").pop()!.replace(".md", ""); ---

{articlePrettyName} 

{ article!.data.lastUpdate && ( Last Update: {article!.data.lastUpdate} ) }