mirror of
https://gitea.com/gitea/docs.git
synced 2026-03-27 05:58:30 +07:00
translation for blog on navbar and remove target="_blank" for internal links (#44)
- Do not use `target="_blank"`for gitea websites on navbar (same behavior as about.gitea.com) - Translate "blog" on navbar for zh-cn Before:  After:  Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/44 Co-authored-by: HesterG <hestergong@gmail.com> Co-committed-by: HesterG <hestergong@gmail.com>
This commit is contained in:
@@ -153,6 +153,7 @@ const config = {
|
||||
alt: 'Gitea Logo',
|
||||
src: 'img/gitea.svg',
|
||||
href: 'https://about.gitea.com/',
|
||||
target: '_self',
|
||||
},
|
||||
items: [
|
||||
{
|
||||
@@ -172,6 +173,7 @@ const config = {
|
||||
label: 'Blog',
|
||||
href: 'https://blog.gitea.com',
|
||||
className: 'internal-href',
|
||||
target: '_self',
|
||||
},
|
||||
{
|
||||
type: 'custom-apiDropdown',
|
||||
@@ -212,6 +214,7 @@ const config = {
|
||||
label: 'Sign In',
|
||||
position: 'right',
|
||||
className: 'internal-href signin-button',
|
||||
target: '_self',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -10,5 +10,8 @@
|
||||
},
|
||||
"item.label.Support": {
|
||||
"message": "支持"
|
||||
},
|
||||
"item.label.Blog": {
|
||||
"message": "博客"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user