feat(nav): restructure top navigation and sidebars

The old nav used bare lowercase slugs and leaned on filesystem order for
every sidebar.

- Replace the three existing nav entries with six labelled ones, keyed
  through i18n.json so both locales resolve to their own text from
  identical _nav.json files.
- Add _meta.json for blogs and opensource-projects, grouping entries by
  topic instead of leaving them alphabetical.
- Rename the Blogs and Notifications pages so their titles match the nav
  labels (Insights and News).
- Point the notification page's account-settings link at GitHub, as the
  Gitea instance it referenced is retired.
This commit is contained in:
zihluwang committed 2026-09-25 14:48:52 +08:00
1 parent 3f78e45899
commit 792246dc12
11 files changed
+212 -34

No files matched your search

+20 -5
View File
@@ -1,17 +1,32 @@
[
{
"text": "projects",
"link": "/projects/",
"activeMatch": "/projects/"
"text": "nav.home",
"link": "/",
"activeMatch": "^/$|^/zh-hans/$"
},
{
"text": "blogs",
"text": "nav.products",
"link": "/products/",
"activeMatch": "/products/"
},
{
"text": "nav.services",
"link": "/services/",
"activeMatch": "/services/"
},
{
"text": "nav.insights",
"link": "/blogs/",
"activeMatch": "/blogs/"
},
{
"text": "notifications",
"text": "nav.news",
"link": "/notifications/",
"activeMatch": "/notifications/"
},
{
"text": "nav.opensource",
"link": "/opensource-projects/",
"activeMatch": "/opensource-projects/"
}
]