57 lines
1.4 KiB
TypeScript
57 lines
1.4 KiB
TypeScript
export type ExternalProfileLinkType = "qq" | "music" | "github" | "email"
|
||
export type ProfileLinkType = ExternalProfileLinkType | "wechat"
|
||
|
||
export interface ExternalProfileLink {
|
||
type: ExternalProfileLinkType
|
||
name: string
|
||
url: string
|
||
}
|
||
|
||
export interface QrProfileLink {
|
||
type: "wechat"
|
||
name: string
|
||
qrImage: string
|
||
qrAlt: string
|
||
label: string
|
||
}
|
||
|
||
export type ProfileLink = ExternalProfileLink | QrProfileLink
|
||
|
||
/** 常用联系方式,改这里即可,下方 links 会引用它们 */
|
||
const GITHUB_URL = "https://github.com/TimeCrackbot1"
|
||
const EMAIL = "tianxuetao1998@hotmail.com"
|
||
|
||
/**
|
||
* 作者个人资料。站点级配置(站名、域名、描述)在 src/data/site.ts。
|
||
*
|
||
* links 支持的 type:github / email / qq / music / wechat。
|
||
* wechat 类型走二维码弹层,需要额外提供 qrImage、qrAlt、label 三个字段。
|
||
*/
|
||
export const profile: {
|
||
name: string
|
||
bio: string
|
||
avatar: string
|
||
email: string
|
||
/** 作者卡片底部那行状态小字(带日历图标)。留空则整行不显示。 */
|
||
status: string
|
||
links: ProfileLink[]
|
||
} = {
|
||
name: "时之刃",
|
||
bio: "只是将博客作为新的爱好的普通人!",
|
||
avatar: "/avatar.webp",
|
||
email: EMAIL,
|
||
status: "正在恢复:家里",
|
||
links: [
|
||
{
|
||
type: "github",
|
||
name: "GitHub",
|
||
url: GITHUB_URL,
|
||
},
|
||
{
|
||
type: "email",
|
||
name: "Email",
|
||
url: `mailto:${EMAIL}`,
|
||
},
|
||
],
|
||
}
|