feat: 初始版本
This commit is contained in:
60
docs/.vitepress/config.mjs
Normal file
60
docs/.vitepress/config.mjs
Normal file
@@ -0,0 +1,60 @@
|
||||
import { defineConfig } from 'vitepress';
|
||||
import { githubIcon } from './icons.mjs';
|
||||
|
||||
// 站点配置
|
||||
// https://vitepress.dev/zh/reference/site-config
|
||||
export default defineConfig({
|
||||
|
||||
// 站点元数据
|
||||
base: '/',
|
||||
lang: 'zh-CN',
|
||||
title: 'Frost-ZX',
|
||||
titleTemplate: ':title - Frost-ZX',
|
||||
description: 'Frost-ZX 的博客',
|
||||
head: [
|
||||
['link', { rel: 'icon', href: '/favicon.png' }],
|
||||
],
|
||||
|
||||
// 构建配置
|
||||
ignoreDeadLinks: true,
|
||||
metaChunk: true,
|
||||
|
||||
// 主题配置
|
||||
// https://vitepress.dev/zh/reference/default-theme-config
|
||||
themeConfig: {
|
||||
|
||||
logo: '/favicon.png',
|
||||
nav: [
|
||||
{ text: '主页', link: '/' },
|
||||
{ text: '归档', link: '/archives' },
|
||||
{ text: '关于', link: '/about' },
|
||||
{ text: '留言板', link: '/comments' },
|
||||
{ text: '友情链接', link: '/links' },
|
||||
],
|
||||
outline: {
|
||||
label: '目录',
|
||||
level: 2,
|
||||
},
|
||||
sidebar: {
|
||||
},
|
||||
socialLinks: [
|
||||
{ icon: { svg: githubIcon }, link: 'https://github.com/Frost-ZX' },
|
||||
],
|
||||
darkModeSwitchLabel: '切换主题',
|
||||
darkModeSwitchTitle: '切换到深色模式',
|
||||
docFooter: {
|
||||
next: '下一篇',
|
||||
prev: '上一篇',
|
||||
},
|
||||
langMenuLabel: '语言设置',
|
||||
lightModeSwitchTitle: '切换到浅色模式',
|
||||
returnToTopLabel: '返回顶部',
|
||||
|
||||
},
|
||||
|
||||
// 网站地图
|
||||
sitemap: {
|
||||
hostname: 'https://blog.frost-zx.top',
|
||||
},
|
||||
|
||||
});
|
Reference in New Issue
Block a user