Add release links to navbar and footer, update i18n (#555)

This commit is contained in:
Ryan Wang
2026-01-28 18:19:54 +08:00
committed by GitHub
parent 71dd35db47
commit d1c2faa8ec
4 changed files with 50 additions and 33 deletions

View File

@@ -131,7 +131,7 @@ const config = {
([versionName, versionUrl]) => ({
label: versionName,
href: versionUrl,
}),
})
),
{
to: "/versions",
@@ -149,6 +149,11 @@ const config = {
label: "论坛",
position: "right",
},
{
href: "https://releases.halo.run",
label: "版本",
position: "right",
},
{
href: "https://github.com/halo-dev/halo",
label: "GitHub",
@@ -184,6 +189,10 @@ const config = {
label: "Gitee 组织",
href: "https://gitee.com/halo-dev",
},
{
label: "版本发布",
href: "https://releases.halo.run",
},
{
label: "Server Status",
href: "https://status.halo.run",

View File

@@ -96,10 +96,6 @@
"theme.docs.versionBadge.label": {
"message": "版本:{versionLabel}"
},
"theme.common.editThisPage": {
"message": "编辑此页",
"description": "The link label to edit the current page"
},
"theme.docs.versions.unreleasedVersionLabel": {
"message": "此为 {siteTitle} {versionLabel} 版尚未发行的文档。",
"description": "The label used to tell the user that he's browsing an unreleased doc version"
@@ -116,6 +112,10 @@
"message": "最新版本",
"description": "The label used for the latest version suggestion link label"
},
"theme.common.editThisPage": {
"message": "编辑此页",
"description": "The link label to edit the current page"
},
"theme.common.headingLinkTitle": {
"message": "{heading}的直接链接",
"description": "Title for link to heading"
@@ -144,6 +144,10 @@
"message": "标签:",
"description": "The label alongside a tag list"
},
"theme.AnnouncementBar.closeButtonAriaLabel": {
"message": "关闭",
"description": "The ARIA label for close button of announcement bar"
},
"theme.admonition.caution": {
"message": "警告",
"description": "The default label used for the Caution admonition (:::caution)"
@@ -168,10 +172,6 @@
"message": "注意",
"description": "The default label used for the Warning admonition (:::warning)"
},
"theme.AnnouncementBar.closeButtonAriaLabel": {
"message": "关闭",
"description": "The ARIA label for close button of announcement bar"
},
"theme.blog.sidebar.navAriaLabel": {
"message": "最近博文导航",
"description": "The ARIA label for recent posts in the blog sidebar"
@@ -192,10 +192,6 @@
"message": "主导航",
"description": "The ARIA label for the main navigation"
},
"theme.navbar.mobileLanguageDropdown.label": {
"message": "选择语言",
"description": "The label for the mobile language switcher dropdown"
},
"theme.NotFound.p1": {
"message": "我们找不到您要找的页面。",
"description": "The first paragraph of the 404 page"
@@ -208,6 +204,10 @@
"message": "本页总览",
"description": "The label used by the button on the collapsible TOC component"
},
"theme.navbar.mobileLanguageDropdown.label": {
"message": "选择语言",
"description": "The label for the mobile language switcher dropdown"
},
"theme.blog.post.readMore": {
"message": "阅读更多",
"description": "The label used in blog post item excerpts to link to full blog posts"
@@ -224,6 +224,22 @@
"message": "切换自动换行",
"description": "The title attribute for toggle word wrapping button of code block lines"
},
"theme.docs.breadcrumbs.home": {
"message": "主页面",
"description": "The ARIA label for the home page in the breadcrumbs"
},
"theme.docs.sidebar.navAriaLabel": {
"message": "文档侧边栏",
"description": "The ARIA label for the sidebar navigation"
},
"theme.docs.sidebar.collapseButtonTitle": {
"message": "收起侧边栏",
"description": "The title attribute for collapse button of doc sidebar"
},
"theme.docs.sidebar.collapseButtonAriaLabel": {
"message": "收起侧边栏",
"description": "The title attribute for collapse button of doc sidebar"
},
"theme.CodeBlock.copy": {
"message": "复制",
"description": "The copy button label on code blocks"
@@ -236,26 +252,14 @@
"message": "复制代码到剪贴板",
"description": "The ARIA label for copy code blocks button"
},
"theme.docs.sidebar.collapseButtonTitle": {
"message": "收起侧边栏",
"description": "The title attribute for collapse button of doc sidebar"
},
"theme.docs.sidebar.collapseButtonAriaLabel": {
"message": "收起侧边栏",
"description": "The title attribute for collapse button of doc sidebar"
},
"theme.docs.sidebar.navAriaLabel": {
"message": "文档侧边栏",
"description": "The ARIA label for the sidebar navigation"
},
"theme.docs.breadcrumbs.home": {
"message": "主页面",
"description": "The ARIA label for the home page in the breadcrumbs"
},
"theme.docs.sidebar.closeSidebarButtonAriaLabel": {
"message": "关闭导航栏",
"description": "The ARIA label for close button of mobile sidebar"
},
"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": {
"message": "← 回到主菜单",
"description": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)"
},
"theme.docs.sidebar.toggleSidebarButtonAriaLabel": {
"message": "切换导航栏",
"description": "The ARIA label for hamburger menu button of mobile navigation"
@@ -268,10 +272,6 @@
"message": "Collapse the dropdown",
"description": "The ARIA label of the button to collapse the mobile dropdown navbar item"
},
"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": {
"message": "← 回到主菜单",
"description": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)"
},
"theme.docs.sidebar.expandButtonTitle": {
"message": "展开侧边栏",
"description": "The ARIA label and title attribute for expand button of doc sidebar"

View File

@@ -23,6 +23,10 @@
"message": "Gitee 组织",
"description": "The label of footer link with label=Gitee 组织 linking to https://gitee.com/halo-dev"
},
"link.item.label.版本发布": {
"message": "版本发布",
"description": "The label of footer link with label=版本发布 linking to https://releases.halo.run"
},
"link.item.label.Server Status": {
"message": "Server Status",
"description": "The label of footer link with label=Server Status linking to https://status.halo.run"

View File

@@ -23,6 +23,10 @@
"message": "论坛",
"description": "Navbar item with label 论坛"
},
"item.label.版本": {
"message": "版本",
"description": "Navbar item with label 版本"
},
"item.label.GitHub": {
"message": "GitHub",
"description": "Navbar item with label GitHub"