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