--- import FormattedDate from "@/components/FormattedDate.astro"; import Card from "../componentsBefore/Card.astro"; import { Icon } from "astro-icon/components"; import Label from "../componentsBefore/Label.astro"; import type { PostItem } from "@/types"; interface Props { content: PostItem; readingTime: string; ogImage: string; } const { content: { data, dateToCmp }, readingTime, ogImage, } = Astro.props; const dateTimeOptions: Intl.DateTimeFormatOptions = { month: "long", }; const socialImageURL = new URL(ogImage ? ogImage : "/social-card.png", Astro.url).href; --- { socialImageURL && (