This repository has been archived on 2025-06-28. You can view files and clone it, but cannot push or open issues or pull requests.
Files
vitepress-theme-blog-charle…/repos/.vitepress/config/theme.ts

36 lines
1.2 KiB
TypeScript

import DefaultTheme from 'vitepress/theme'
import { nav } from './nav'
import { sidebar } from './sidebar'
export const themeConfig: DefaultTheme.Config = {
logo: '/logo.jpg',
outlineTitle: '目录', // 右侧边栏的大纲标题文本
lastUpdatedText: '最后更新', // 最后更新时间文本, 需配置 lastUpdated 为 true
docFooter: {
prev: '上一页',
next: '下一页'
},
// 编辑链接
editLink: {
pattern: 'https://github.com/Charles7c/charles7c.github.io/edit/main/repos/:path',
text: '在 GitHub 上编辑此页面'
},
// 页脚配置, 由于vitepress官方没有此计划, 所以自行定制
footerConfig: {
showFooter: true, // 是否显示页脚
message: `<a href="https://beian.miit.gov.cn/" target="_blank">京ICP备20003712号-2</a>`, // 备案信息
copyright : `Copyright © 2019-${new Date().getFullYear()} Charles7c` // 版权信息
},
// 全文搜索
algolia: {
appId: 'DBZ0G9HBUY',
apiKey: '00cef480a543003d05d9808110ea5f65',
indexName: 'charles7c'
},
// 社交链接
socialLinks: [
{ icon: 'github', link: 'https://github.com/Charles7c/charles7c.github.io' }
],
nav, // 导航栏
sidebar // 侧边栏
}