diff --git a/src/layouts/ContentLayout.astro b/src/layouts/ContentLayout.astro index f95e367..62c0554 100644 --- a/src/layouts/ContentLayout.astro +++ b/src/layouts/ContentLayout.astro @@ -5,10 +5,15 @@ import Header from "../components/Header.astro"; import Footer from "../components/Footer.astro"; import FormattedDate from "../components/FormattedDate.astro"; -type Props = CollectionEntry<"blog">["data"]; +interface Props { + post: CollectionEntry<"blog">; +} -const { title, tags, level, description, pubDate, updatedDate, heroImage } = - Astro.props; +const { + slug, + collection, + data: { title, tags, level, description, pubDate, updatedDate, heroImage }, +} = Astro.props.post; --- @@ -79,6 +84,12 @@ const { title, tags, level, description, pubDate, updatedDate, heroImage } =