准备备案

This commit is contained in:
2025-11-23 11:09:23 +08:00
parent c6d124fd9a
commit b4838c9e5e
5 changed files with 202 additions and 199 deletions

View File

@@ -28,19 +28,20 @@ const blogTheme = getThemeConfig({
mermaid: true,
// 页脚
// footer: {
// // message 字段支持配置为HTML内容配置多条可以配置为数组
// // message: '下面 的内容和图标都是可以修改的噢(当然本条内容也是可以隐藏的)',
// copyright: 'MIT License | SIMON',
// // icpRecord: {
// // name: '蜀ICP备19011724号',
// // link: 'https://beian.miit.gov.cn/'
// // },
// // securityRecord: {
// // name: '公网安备xxxxx',
// // link: 'https://www.beian.gov.cn/portal/index.do'
// // },
// },
footer: {
// message 字段支持配置为HTML内容配置多条可以配置为数组
message: '<span>联系邮箱:<a href="mailto:zhuzihan@zhuzihan.com">zhuzihan@zhuzihan.com</a></span>',
copyright: 'MIT License | SIMON',
version: false,
icpRecord: {
name: 'xICP备xxxxxxx号',
link: 'https://beian.miit.gov.cn/'
},
securityRecord: {
name: '公网安备xxxxx',
link: 'https://www.beian.gov.cn/portal/index.do'
},
},
// 主题色修改
themeColor: 'el-blue',
@@ -67,38 +68,38 @@ const blogTheme = getThemeConfig({
],
// 公告
// popover: {
// title: '公告',
// body: [
// { type: 'text', content: '👇公众号👇---👇 微信 👇' },
// {
// type: 'image',
// src: 'https://img.cdn.sugarat.top/mdImg/MTYxNTAxODc2NTIxMA==615018765210~fmt.webp'
// },
// {
// type: 'text',
// content: '欢迎大家加群&私信交流'
// },
// {
// type: 'text',
// content: '文章首/文尾有群二维码',
// style: 'padding-top:0'
// },
// {
// type: 'button',
// content: '作者博客',
// link: 'https://sugarat.top'
// },
// {
// type: 'button',
// content: '加群交流',
// props: {
// type: 'success'
// },
// link: 'https://theme.sugarat.top/group.html',
// }
// ],
// duration: 0
// popover: {
// title: '公告',
// body: [
// { type: 'text', content: '👇公众号👇---👇 微信 👇' },
// {
// type: 'image',
// src: 'https://img.cdn.sugarat.top/mdImg/MTYxNTAxODc2NTIxMA==615018765210~fmt.webp'
// },
// {
// type: 'text',
// content: '欢迎大家加群&私信交流'
// },
// {
// type: 'text',
// content: '文章首/文尾有群二维码',
// style: 'padding-top:0'
// },
// {
// type: 'button',
// content: '作者博客',
// link: 'https://sugarat.top'
// },
// {
// type: 'button',
// content: '加群交流',
// props: {
// type: 'success'
// },
// link: 'https://theme.sugarat.top/group.html',
// }
// ],
// duration: 0
//},
comment: {

View File

@@ -1,71 +1,71 @@
import { defineConfig } from 'vitepress'
// 导入主题的配置
import { blogTheme } from './blog-theme'
// 如果使用 GitHub/Gitee Pages 等公共平台部署
// 通常需要修改 base 路径,通常为“/仓库名/”
// 如果项目名已经为 name.github.io 域名,则不需要修改!
// const base = process.env.GITHUB_ACTIONS === 'true'
// ? '/vitepress-blog-sugar-template/'
// : '/'
// Vitepress 默认配置
// 详见文档https://vitepress.dev/reference/site-config
export default defineConfig({
// 继承博客主题(@sugarat/theme)
extends: blogTheme,
// base,
lang: 'zh-cn',
title: 'SIMON BLOG',
description: 'Simon的博客基于 vitepress 实现',
lastUpdated: true,
markdown: {
math: true
},
// 详见https://vitepress.dev/zh/reference/site-config#head
head: [
// 配置网站的图标(显示在浏览器的 tab 上)
// ['link', { rel: 'icon', href: `${base}favicon.ico` }], // 修改了 base 这里也需要同步修改
['link', { rel: 'icon', href: '/favicon.ico' }]
],
themeConfig: {
// 展示 2,3 级标题在目录中
outline: {
level: [2, 3],
label: '目录'
},
// 默认文案修改
returnToTopLabel: '回到顶部',
sidebarMenuLabel: '相关文章',
lastUpdatedText: '上次更新于',
// 设置logo
logo: '/logo.jpg',
// editLink: {
// pattern:
// 'https://github.com/ATQQ/sugar-blog/tree/master/packages/blogpress/:path',
// text: '去 GitHub 上编辑内容'
// },
nav: [
{ text: '首页', link: '/' },
{ text: '导航页', link: 'http://home.zhuzihan.com/' },
{ text: '服务器状态检测', link: 'https://state.zhuzihan.com/' },
{ text: '主题仓库', link: 'https://github.com/ATQQ/sugar-blog/tree/master/packages/theme' },
{ text: '关于作者', link: 'https://github.com/handsomezhuzhu' },
{ text: 'AI API测活', link: 'https://api-test.zhuzihan.com/' },
{ text: '文件快递柜', link: 'https://file.zhuzihan.com/' },
{ text: '免费AI对话', link: 'https://ai.zhuzihan.com/' },
{ text: 'key轮询池', link: 'https://load.zhuzihan.com/' }
],
socialLinks: [
{
icon: 'github',
link: 'https://github.com/handsomezhuzhu'
}
]
}
})
import { defineConfig } from 'vitepress'
// 导入主题的配置
import { blogTheme } from './blog-theme'
// 如果使用 GitHub/Gitee Pages 等公共平台部署
// 通常需要修改 base 路径,通常为“/仓库名/”
// 如果项目名已经为 name.github.io 域名,则不需要修改!
// const base = process.env.GITHUB_ACTIONS === 'true'
// ? '/vitepress-blog-sugar-template/'
// : '/'
// Vitepress 默认配置
// 详见文档https://vitepress.dev/reference/site-config
export default defineConfig({
// 继承博客主题(@sugarat/theme)
extends: blogTheme,
// base,
lang: 'zh-cn',
title: 'SIMON BLOG',
description: 'Simon的博客基于 vitepress 实现',
lastUpdated: true,
markdown: {
math: true
},
// 详见https://vitepress.dev/zh/reference/site-config#head
head: [
// 配置网站的图标(显示在浏览器的 tab 上)
// ['link', { rel: 'icon', href: `${base}favicon.ico` }], // 修改了 base 这里也需要同步修改
['link', { rel: 'icon', href: '/favicon.ico' }]
],
themeConfig: {
// 展示 2,3 级标题在目录中
outline: {
level: [2, 3],
label: '目录'
},
// 默认文案修改
returnToTopLabel: '回到顶部',
sidebarMenuLabel: '相关文章',
lastUpdatedText: '上次更新于',
// 设置logo
logo: '/logo.jpg',
// editLink: {
// pattern:
// 'https://github.com/ATQQ/sugar-blog/tree/master/packages/blogpress/:path',
// text: '去 GitHub 上编辑内容'
// },
nav: [
{ text: '首页', link: '/' },
// { text: '导航页', link: 'http://home.zhuzihan.com/' },
{ text: '服务器状态检测', link: 'https://state.zhuzihan.com/' },
{ text: '主题仓库', link: 'https://github.com/ATQQ/sugar-blog/tree/master/packages/theme' },
{ text: '关于作者', link: 'https://github.com/handsomezhuzhu' },
{ text: 'AI API测活', link: 'https://api-test.zhuzihan.com/' },
{ text: '文件快递柜', link: 'https://file.zhuzihan.com/' },
{ text: '免费AI对话', link: 'https://ai.zhuzihan.com/' },
{ text: 'key轮询池', link: 'https://load.zhuzihan.com/' }
],
socialLinks: [
{
icon: 'github',
link: 'https://github.com/handsomezhuzhu'
}
]
}
})