fix: update navbar components and links

This commit is contained in:
andatoshiki 2023-03-02 21:49:43 +08:00
parent 461034c9d5
commit 131e84887f

View File

@ -2,14 +2,14 @@ import { DefaultTheme } from 'vitepress/theme'
export const nav: DefaultTheme.Config['nav'] = [ export const nav: DefaultTheme.Config['nav'] = [
{ {
text: '📚 Academic', text: 'Academic',
items: [ items: [
{ {
text: 'K-12', text: 'K-12',
items: [ items: [
{ text: '🧪 Chemistry', link: '/academic/chemistry/index', activeMatch: '/academic/chemistry/' }, { text: 'Chemistry', link: '/academic/chemistry/index', activeMatch: '/academic/chemistry/' },
{ text: '🧮 Discrete Math.', link: '/discrete-math/index', activeMatch: '/categories/fragments/' }, { text: 'Discrete Math.', link: '/discrete-math/index', activeMatch: '/categories/fragments/' },
{ text: '✍️ Literature', link: '/academic/literature/index', activeMatch: '/academic/literature/' }, { text: 'Literature', link: '/academic/literature/index', activeMatch: '/academic/literature/' },
], ],
}, },
{ text: '', link: '', activeMatch: '' }, { text: '', link: '', activeMatch: '' },
@ -22,11 +22,30 @@ export const nav: DefaultTheme.Config['nav'] = [
], ],
activeMatch: '/academic/', activeMatch: '/academic/',
}, },
{ {
text: '💾 Save', text: 'Application',
items: [ items: [
{ text: '📰 Reading', link: '/save/reading/index', activeMatch: '/save/reading/' }, {
{ text: '🥠 Vocabulary', link: '/academic/vocabulary/index', activeMatch: '/academic/vocabulary/' }, text: 'Personal projects',
items: [
{
text: 'markdown-it-katex',
link: '/application/markdown-it-katex/index',
activeMatch: '/application/markdown-it-katex/',
},
{ text: '', link: '', activeMatch: '' },
],
},
],
activeMatch: '/save/',
},
{
text: 'Save',
items: [
{ text: 'Reading', link: '/save/reading/index', activeMatch: '/save/reading/' },
{ text: 'Vocabulary', link: '/academic/vocabulary/index', activeMatch: '/academic/vocabulary/' },
], ],
activeMatch: '/save/', activeMatch: '/save/',
}, },