配置个人基础信息
配置个人基础信息
配置个人信息、社交链接、友链信息、footer、标签页标题
版权
作者指导,自己测试。
环境
配置环境:
《Youbg Kbt》大佬开源的《vitepress-theme-teek》一个博客项目(知识库+博客 二合一),它是一个轻量、简易的VitePress主题框架,非常简约唯美,且也在持续迭代更新,感谢大佬开源的这款优秀产品,大佬威武。💖💖💖
配置
编辑demo\docs-base\.vitepress\config.mts
文件:
- 标签页标题
ts
author: { name: "One", link: "https://onedayxyy.cn/" },
blogger: {
// 博主信息,显示在首页侧边栏
avatar: "/img/xyy-touxiang.png",
avatarStyle: "full",
name: "One",
slogan: "明心静性,爱自己",
},
- footer
ts
footerInfo: {
topMessage: ["初闻不知曲中意,再听已是曲中人"],
// bottomMessage: ["上面的内容和图标都可以修改(本条内容也可以隐藏的)"],
copyright: {
createYear: 2024,
suffix: "One",
},
icpRecord: {
name: "陇ICP备2023002645号",
link: "http://beian.miit.gov.cn/",
},
customHtml: `<p>小破站已运行了 <span id="footer-runtime"></span></p>`,
},
- 友链信息
ts
// 友链信息
friendLink: {
list: [
{ avatar: "/img/friends/Kbt.png", name: "Young Kbt blog", desc: "Teeker作者", link: "https://notes.youngkbt.cn/" },
{ avatar: "/img/friends/hyde-logo.ico", name: "Hyde Blog", desc: "前端大佬,666", link: "https://hyde.seasir.top/" },
{ avatar: "/img/friends/eryajiangfan.png", name: "二丫讲梵", desc: "Teeker道友", link: "https://wiki.eryajf.net/" },
],
},
- 社交链接
ts
// 社交链接
social: [
{
icon: "icon-github",
iconType: "iconfont",
name: "GitHub",
link: "https://github.com/OnlyOnexl",
},
{
icon: "icon-gitee2",
iconType: "iconfont",
name: "Gitee",
link: "https://gitee.com/onlyonexl/",
},
{
icon: "icon-qq",
iconType: "iconfont",
name: "QQ",
link: "http://wpa.qq.com/msgrd?v=3&uin=2675263825&site=qq&menu=yes",
},
{
icon: "icon-mobile",
iconType: "iconfont",
name: "联系我",
link: "https://onedayxyy.cn/?contact=true",
},
],