--- import { Icon } from "astro-icon/components"; import { profileConfig, umamiConfig } from "@/config"; import { url } from "@utils/url"; import { i18n } from "@i18n/translation"; import I18nKey from "@i18n/i18nKey"; import ImageWrapper from "@/components/common/imageWrapper.astro"; // 解析 umami const umamiEnabled = umamiConfig.enabled || false; const umamiWebsiteId = umamiConfig.scripts.match(/data-website-id="([^"]+)"/)?.[1] || ""; const umamiApiKey = umamiConfig.apiKey || ""; const umamiBaseUrl = umamiConfig.baseUrl || ""; interface Props { class?: string; style?: string; side?: string; } const { class: className, style, side = "default" } = Astro.props; const id = `profile-${side}`; ---
{profileConfig.name}
{profileConfig.bio}
{profileConfig.links.length > 1 && profileConfig.links.map(item => {item.rawIcon ? ( ) : ( )} )} {profileConfig.links.length == 1 && {profileConfig.links[0].rawIcon ? ( ) : ( )} {profileConfig.links[0].name} }
{umamiEnabled && (
统计加载中...
)}
{umamiEnabled && ( )}