chore: 将 site.ts 移出版本控制,改为 site.ts.example
备案号等敏感配置不再提交到仓库,Footer 改为从 siteConfig 读取。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -10,3 +10,4 @@ Thumbs.db
|
|||||||
.idea/
|
.idea/
|
||||||
.env
|
.env
|
||||||
.env.local
|
.env.local
|
||||||
|
config/site.ts
|
||||||
|
|||||||
@@ -6,8 +6,10 @@ import { siteConfig } from '~/config/site'
|
|||||||
<footer class="py-6 text-center text-sm border-t" style="color: var(--color-text-secondary); border-color: var(--color-border);">
|
<footer class="py-6 text-center text-sm border-t" style="color: var(--color-text-secondary); border-color: var(--color-border);">
|
||||||
<p>
|
<p>
|
||||||
© {{ new Date().getFullYear() }} {{ siteConfig.siteName }}
|
© {{ new Date().getFullYear() }} {{ siteConfig.siteName }}
|
||||||
·
|
<template v-if="siteConfig.icp">
|
||||||
<a href="https://beian.miit.gov.cn/" target="_blank" rel="noopener noreferrer" class="hover:opacity-70" style="border-bottom: 1px solid var(--color-text-secondary); padding-bottom: 1px;">蜀ICP备2026028044号</a>
|
·
|
||||||
|
<a href="https://beian.miit.gov.cn/" target="_blank" rel="noopener noreferrer" class="hover:opacity-70" style="border-bottom: 1px solid var(--color-text-secondary); padding-bottom: 1px;">{{ siteConfig.icp }}</a>
|
||||||
|
</template>
|
||||||
</p>
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,62 +0,0 @@
|
|||||||
export const siteConfig = {
|
|
||||||
// 站点信息(改这里定制全站)
|
|
||||||
name: 'Nixus',
|
|
||||||
siteName: '尼克的小窝',
|
|
||||||
title: '《尼克的小窝》官方网站',
|
|
||||||
subtitle: 'Nixus',
|
|
||||||
description: '专注于IT/互联网技术分享与实践的个人技术博客',
|
|
||||||
url: 'https://nixus.top/',
|
|
||||||
keywords: ['尼克', '博客', 'Nixus Blog', '技术博客'],
|
|
||||||
|
|
||||||
// 头像和图标
|
|
||||||
avatar: 'https://q2.qlogo.cn/headimg_dl?dst_uin=1042864399&spec=100',
|
|
||||||
favicon: 'https://q2.qlogo.cn/headimg_dl?dst_uin=1042864399&spec=100',
|
|
||||||
ogImage: 'https://q2.qlogo.cn/headimg_dl?dst_uin=1042864399&spec=100',
|
|
||||||
|
|
||||||
// 作者信息
|
|
||||||
author: {
|
|
||||||
name: 'Nixus',
|
|
||||||
url: 'https://nixus.top/',
|
|
||||||
},
|
|
||||||
bio: 'Protect What You Love.',
|
|
||||||
|
|
||||||
// 社交链接
|
|
||||||
socialLinks: [
|
|
||||||
{ name: 'B站', icon: 'simple-icons:bilibili', url: 'https://space.bilibili.com/296124701', color: '#fb7299' },
|
|
||||||
{ name: 'QQ', icon: 'simple-icons:qq', url: 'https://qm.qq.com/cgi-bin/qm/qr?k=placeholder&group_code=1042864399', color: '#12B7F5' },
|
|
||||||
{ name: 'GitHub', icon: 'simple-icons:github', url: 'https://github.com/wishesl', color: '#333333' },
|
|
||||||
{ name: 'Gitee', icon: 'simple-icons:gitee', url: 'https://gitee.com/blushes', color: '#c71d23' },
|
|
||||||
],
|
|
||||||
|
|
||||||
// 导航菜单
|
|
||||||
navLinks: [
|
|
||||||
{ label: '博客', icon: 'mdi:post-outline', href: '/posts' },
|
|
||||||
{ label: '封面制作', icon: 'mdi:image-edit-outline', href: '/cover' },
|
|
||||||
{ label: '友链', icon: 'mdi:link-variant', href: '/friends' },
|
|
||||||
{ label: '赞助', icon: 'mdi:heart-outline', href: '/sponsor' },
|
|
||||||
{ label: '关于', icon: 'mdi:information-outline', href: '/about' },
|
|
||||||
],
|
|
||||||
|
|
||||||
// 友链
|
|
||||||
friends: [
|
|
||||||
{ name: '二叉树树', url: 'https://2x.nz', avatar: 'https://q2.qlogo.cn/headimg_dl?dst_uin=2726730791&spec=100', description: '专注于IT/互联网技术分享与实践的个人技术博客' },
|
|
||||||
],
|
|
||||||
|
|
||||||
// 赞助
|
|
||||||
sponsors: {
|
|
||||||
qrcode: {
|
|
||||||
wechat: '/sponsors/qrcode/wechat.png',
|
|
||||||
},
|
|
||||||
list: [] as { name: string; date: string; amount: string }[],
|
|
||||||
},
|
|
||||||
|
|
||||||
// Giscus 评论配置
|
|
||||||
giscus: {
|
|
||||||
repo: 'wishesl/SuBlog',
|
|
||||||
repoId: 'R_kgDOSsypJg',
|
|
||||||
category: 'Announcements',
|
|
||||||
categoryId: 'DIC_kwDOSsypJs4C-Mks',
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
export type SiteConfig = typeof siteConfig
|
|
||||||
@@ -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: '',
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user