--- import type { CollectionEntry } from "astro:content"; import Masthead from "@/components/blog/Masthead.astro"; import PostNavigation from "@/components/blog/PostNavigation.astro"; import { t } from "@/i18n/translations"; import BaseLayout from "./Base.astro"; interface Props { post: CollectionEntry<"post">; prevPost: CollectionEntry<"post"> | null | undefined; nextPost: CollectionEntry<"post"> | null | undefined; } const { post, prevPost, nextPost } = Astro.props; const { ogImage, title, description, updatedDate, publishDate, language } = post.data; const socialImage = ogImage ?? `/og-image/${post.id}.png`; const articleDate = updatedDate?.toISOString() ?? publishDate.toISOString(); ---
{ post.data.sourceUrl && (

{t(language, "viewOriginalPost")}

) }