--- import { Icon } from "astro-icon/components"; import { licenseConfig } from "@/config/licenseConfig"; import { profileConfig } from "@/config/profileConfig"; import I18nKey from "@/i18n/i18nKey"; import { i18n } from "@/i18n/translation"; import { formatDateToYYYYMMDD } from "@/utils/date-utils"; interface Props { title: string; id: string; pubDate: Date; class: string; author: string; sourceLink: string; licenseName: string; licenseUrl: string; } const { title, pubDate, author, sourceLink, licenseName, licenseUrl } = Astro.props; const className = Astro.props.class; const profileConf = profileConfig; const licenseConf = licenseConfig; const postUrl = sourceLink || decodeURIComponent(Astro.url.toString()); ---