diff --git a/navpress.config.js b/navpress.config.js index 46da6b4..8edc03e 100644 --- a/navpress.config.js +++ b/navpress.config.js @@ -1,70 +1,77 @@ // config/index.js export default { - title: 'My Static Site Generator', - description: 'A simple static site generator with configurable navigation', - logo: '/navpress/images/logo.svg', - github: 'https://github.com/aaronlamz/navpress', - base:'/navpress/', + title: "我的开发导航", + description: "A simple static site generator with configurable navigation", + logo: "/navpress/images/logo.svg", + github: "https://github.com/aaronlamz/navpress", + base: "/navpress/", meta: { - title: 'My Navpress', - description: 'Navpress - a simple static site generator with configurable navigation', - keywords: 'static site, generator, navpress, vue', - author: 'aaronlamz', + title: "My Navpress", + description: + "Navpress - a simple static site generator with configurable navigation", + keywords: "static site, generator, navpress, vue", + author: "aaronlamz", }, sidebar: [ - { - text: 'Home', - link: '/', + { + text: "Web", + link: "/", items: [ { - text: 'Group 1', - link: '#group1', + text: "前端", + link: "#group1", items: [ - { text: 'Child 1', link: 'https://example.com/child1' }, - { text: 'Child 2', link: 'https://example.com/child2' }, - { text: 'Child 2', link: 'https://example.com/child2' }, - ] + { text: "Child 1", link: "https://example.com/child1" }, + { text: "Child 2", link: "https://example.com/child2" }, + { text: "Child 2", link: "https://example.com/child2" }, + ], }, { - text: 'Group 2', - link: '#group2', + text: "设计", + link: "#group2", items: [ - { text: 'Child 3', link: 'https://example.com/child3' }, - { text: 'Child 4', link: 'https://example.com/child4' }, - { text: 'Child 2', link: 'https://example.com/child2' }, - ] + { text: "Child 3", link: "https://example.com/child3" }, + { text: "Child 4", link: "https://example.com/child4" }, + { text: "Child 2", link: "https://example.com/child2" }, + ], }, + ], + }, + { + text: "效率工具", + link: "/efficient", + expanded: true, + items: [ { - text: 'Group 3', - link: '#group3', - items: [ - { text: 'Child 3', link: 'https://example.com/child3' }, - { text: 'Child 4', link: 'https://example.com/child4' }, - ] + text: "Group A", + link: "#groupA", + items: [{ text: "Child A1", link: "https://example.com/childA1" }], }, + ], + }, + { + text: "AI 资源", + link: "/ai", + expanded: true, + items: [ { - text: 'Group 4', - link: '#group4', - items: [ - { text: 'Child 3', link: 'https://example.com/child3' }, - { text: 'Child 4', link: 'https://example.com/child4' }, - ] - } - ] + text: "Group A", + link: "#groupA", + items: [{ text: "Child A1", link: "https://example.com/childA1" }], + }, + ], }, - { - text: 'About', - link: '/about', - expanded: false, + { + text: "副业有道", + link: "/second-job", + expanded: true, items: [ { - text: 'Group A', - link: '#groupA', - items: [ - { text: 'Child A1', link: 'https://example.com/childA1' }, - ] - } - ] + text: "Group A", + link: "#groupA", + items: [{ text: "Child", link: "https://example.com/childA1" }], + }, + ], }, ], -} +}; diff --git a/package.json b/package.json index a42fb03..6286364 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "navpress", - "version": "1.0.0-beta.5", + "version": "1.0.0-beta.6", "description": "Easy navigation website generator", "main": "index.js", "type": "module", diff --git a/src/App.vue b/src/App.vue index c382956..224e20f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,8 +1,8 @@