chore: 将 site.ts 移出版本控制,改为 site.ts.example

备案号等敏感配置不再提交到仓库,Footer 改为从 siteConfig 读取。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-31 21:54:39 +08:00
parent 051f1038f9
commit b95d06cc2d
4 changed files with 60 additions and 64 deletions
+55
View File
@@ -0,0 +1,55 @@
export const siteConfig = {
// 站点信息(改这里定制全站)
name: 'MyBlog',
siteName: '我的博客',
title: '《我的博客》官方网站',
subtitle: 'MyBlog',
description: '专注于IT/互联网技术分享与实践的个人技术博客',
url: 'https://example.com/',
keywords: ['博客', '技术博客'],
// 头像和图标
avatar: '/avatar.png',
favicon: '/favicon.png',
ogImage: '/og-image.png',
// 作者信息
author: {
name: 'YourName',
url: 'https://example.com/',
},
bio: 'Protect What You Love.',
// 社交链接
socialLinks: [
{ name: 'GitHub', icon: 'simple-icons:github', url: 'https://github.com/yourname', color: '#333333' },
],
// 导航菜单
navLinks: [
{ label: '博客', icon: 'mdi:post-outline', href: '/posts' },
{ label: '关于', icon: 'mdi:information-outline', href: '/about' },
],
// 友链
friends: [] as { name: string; url: string; avatar: string; description: string }[],
// 赞助
sponsors: {
qrcode: {
wechat: '/sponsors/qrcode/wechat.png',
},
list: [] as { name: string; date: string; amount: string }[],
},
// Giscus 评论配置
giscus: {
repo: 'owner/repo',
repoId: '',
category: 'Announcements',
categoryId: '',
},
// ICP 备案号(留空则不显示)
icp: '',
}