Skip to content

Commit

Permalink
Update content and nav config
Browse files Browse the repository at this point in the history
  • Loading branch information
Freedyool committed Jan 16, 2025
1 parent 91aac8c commit 3eb67fb
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 38 deletions.
62 changes: 41 additions & 21 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,49 @@ export default defineConfig({
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: 'Home', link: '/' },
{ text: 'Examples', link: '/markdown-examples' }
{ text: '博客', link: '/blog/index', activeMatch: '/blog/' },
{ text: '项目', link: '/project/index', activeMatch: '/project/' },
{ text: '关于', link: '/guide/index', activeMatch: '/guide/' }
],

sidebar: [
{
text: 'Adv-PPK',
base: '/advanced-ppk',
link: '/index',
items: [
{text: 'About', link: '/about'}
]
},
{
text: '建站指南',
base: '/guide',
link: '/quick-start',
items: [
{text: 'api 样例', link: '/api-examples'},
{text: 'markdown 样例', link: '/markdown-examples'}
]
},
],
sidebar: {
'/blog/': [
{
text: '博客目录',
base: '/blog',
link: '/index',
items: [
]
}
],
'/guide/': [
{
text: '建站指南',
base: '/guide',
link: '/index',
items: [
{ text: '快速开始', link: '/quick-start' },
{ text: '部署 ssl 证书', link: '/ssl-cert' }
]
},
],
'/project/': [
{
text: '项目列表',
link: '/index',
items: [
{
text: 'Adv-PPK',
base: '/project/advanced-ppk',
link: '/index',
items: [
{ text: 'About', link: '/about' }
]
}
]
}
]
},

socialLinks: [
{ icon: 'github', link: 'https://github.com/Freedyool/TG-Awesome-Blog' }
Expand Down
7 changes: 7 additions & 0 deletions docs/blog/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# 目录

从这里开始浏览TG的博客,TG是谁,我也不知道,为啥叫TG,不记得了;

## 2025年 1月

- D15:[ssl 证书相关](../guide/ssl-cert.html)
17 changes: 0 additions & 17 deletions docs/contents.md

This file was deleted.

2 changes: 2 additions & 0 deletions docs/guide/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# 关于本站

File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions docs/project/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 我的项目

0 comments on commit 3eb67fb

Please sign in to comment.