初始提交:时之刃的小站
基于 VermilionVoid(朱墨留白)主题的个人博客。 - 站点配置集中在 src/data/site.ts 与 src/data/profile.ts - 30 篇文章、8 条偶得、相册 - 评论使用自托管 twikoo - 部署走 deploy.sh(rsync 到树莓派 + 云服务器)
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
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/TimeCrackbot"
|
||||
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
|
||||
links: ProfileLink[]
|
||||
} = {
|
||||
name: "时之刃",
|
||||
bio: "只是将博客作为新的爱好的普通人!",
|
||||
avatar: "/avatar.webp",
|
||||
email: EMAIL,
|
||||
links: [
|
||||
{
|
||||
type: "github",
|
||||
name: "GitHub",
|
||||
url: GITHUB_URL,
|
||||
},
|
||||
{
|
||||
type: "email",
|
||||
name: "Email",
|
||||
url: `mailto:${EMAIL}`,
|
||||
},
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user