diff --git a/.gitignore b/.gitignore index 9aed94b..5cfa331 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ Thumbs.db .idea/ .env .env.local +config/site.ts diff --git a/components/layout/Footer.vue b/components/layout/Footer.vue index 9f54974..2170980 100644 --- a/components/layout/Footer.vue +++ b/components/layout/Footer.vue @@ -6,8 +6,10 @@ import { siteConfig } from '~/config/site' diff --git a/config/site.ts b/config/site.ts deleted file mode 100644 index 40c7164..0000000 --- a/config/site.ts +++ /dev/null @@ -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 diff --git a/config/site.ts.example b/config/site.ts.example new file mode 100644 index 0000000..70e5954 --- /dev/null +++ b/config/site.ts.example @@ -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: '', +}