--- import { 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 GiscusComment from "@/components/componentsBefore/GiscusComment"; import BaseLayout from "./Base.astro"; import ArticleContainer from "@/components/ArticleContainer.astro"; import ShareButtons from "@/components/ShareButtons.astro"; import ContentFooter from "@/components/ContentFooter.astro"; import type { PostItem } from "@/types"; interface Props { post: PostItem; } const { post } = Astro.props; const { banner: ogImage, title, description, tags, category } = post.data; const socialImage = ogImage ?? `/og-image/${post.id}.png`; const articleDate = post.dateToCmp.toISOString(); const { headings, remarkPluginFrontmatter } = await render(post); const readingTime: string = remarkPluginFrontmatter.readingTime; ---