--- import { type CollectionEntry, render } from "astro:content"; import Masthead from "@/components/blog/Masthead.astro"; import TOC from "@/components/blog/TOC.astro"; import WebMentions from "@/components/blog/webmentions/index.astro"; import BaseLayout from "./Base.astro"; interface Props { post: CollectionEntry<"post">; } const { post } = Astro.props; const { banner: ogImage, title, description, date_modified: updatedDate, date: publishDate, tags, } = post.data; const socialImage = ogImage ?? `/og-image/${post.id}.png`; const articleDate = updatedDate?.toISOString() ?? publishDate.toISOString(); const { headings, remarkPluginFrontmatter } = await render(post); const readingTime: string = remarkPluginFrontmatter.readingTime; ---
{!!headings.length && }