--- import BaseLayout from "./BaseLayout.astro"; import Remark42Embed from "@/components/Remark42Embed.astro"; import PostNav from "@/components/Posts/PostNav.astro"; import TagLink from "@/components/TagLink.astro"; import PostMenu from "@/components/Posts/PostMenu.astro"; import Dialog from "@/components/Posts/Dialog.astro"; import { fade } from "astro:transitions"; import { getTranslations } from "@/i18n"; import "@/styles/global.css"; const { post, frontmatter, lang, slug, postId, headings } = Astro.props; const comments = lang === "zh" ? "评论区" : "comments"; const t = getTranslations(lang); const publishedDate = new Intl.DateTimeFormat( lang === "zh" ? "zh-CN" : "en-US", { year: "numeric", month: "long", day: "numeric", }, ).format(frontmatter.pubDate); ---

{frontmatter.title}

{frontmatter.description}

{t.post.writtenBy} {frontmatter.author} · {t.post.publishedOn} {publishedDate}

{ frontmatter.tags.map((tag: string) => ( )) }
{frontmatter.image.alt}

{comments}

{t.post.commentsDesc.map((line: string) =>

)}