---
import type { CollectionEntry } from "astro:content";
import BaseLayout from "./Base.astro";
import BlogHero from "@/components/blog/Hero";
interface Props {
post: CollectionEntry<"post">;
}
const { post } = Astro.props;
const {
data: { title, description, ogImage, publishDate },
slug,
} = post;
const socialImage = ogImage ?? `/og-image/${slug}.png`;
const articleDate = publishDate.toISOString();
const { headings } = await post.render();
---
{
!!headings.length && (
)
}