1
0

feat: 初始版本

This commit is contained in:
2025-10-06 18:23:10 +08:00
parent 17a4d7b95e
commit 58d266b4ff
11 changed files with 1529 additions and 0 deletions

View 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',
},
});

View File

@@ -0,0 +1,2 @@
// Material Design Icons - github
export const githubIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z" /></svg>`;

7
docs/about.md Normal file
View File

@@ -0,0 +1,7 @@
---
layout: doc
aside: false
title: 关于
---
# 关于

7
docs/archives.md Normal file
View File

@@ -0,0 +1,7 @@
---
layout: doc
aside: true
title: 归档
---
# 归档

15
docs/comments.md Normal file
View File

@@ -0,0 +1,15 @@
---
layout: doc
aside: false
title: 留言板
---
# 留言板
**欢迎留言。**
Welcome to leave a comment.
**请勿在此发布广告。**
Advertisements are not welcome here.

10
docs/index.md Normal file
View File

@@ -0,0 +1,10 @@
---
# 主页
# https://vitepress.dev/zh/reference/default-theme-home-page
layout: home
title: 主页
hero:
name: "Frost-ZX 的博客"
text: ""
tagline: 一个分享技术、资源,记录学习与生活的博客。
---

7
docs/links.md Normal file
View File

@@ -0,0 +1,7 @@
---
layout: doc
aside: false
title: 友情链接
---
# 友情链接

BIN
docs/public/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB