--- import "@/styles/global.css"; import Header from "@/components/Header.tsx"; import {Footer} from "@/components/Footer.tsx"; import { ICP, PSB_ICP, PSB_ICP_URL, SITE_NAME, SITE_DESCRIPTION } from "@/consts"; // 定义Props接口 interface Props { title?: string; description?: string; date?: Date; author?: string; tags?: string[]; image?: string; } // 获取完整的 URL const canonicalURL = new URL(Astro.url.pathname, Astro.site); // 从props中获取页面特定信息 const { title = SITE_NAME, description = SITE_DESCRIPTION, date, author, tags, image } = Astro.props; ---