mirror of
https://gitea.com/gitea/docs.git
synced 2026-07-22 02:37:42 +00: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',
|
alt: 'Gitea Logo',
|
||||||
src: 'img/gitea.svg',
|
src: 'img/gitea.svg',
|
||||||
href: 'https://about.gitea.com/',
|
href: 'https://about.gitea.com/',
|
||||||
|
target: '_self',
|
||||||
},
|
},
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
@@ -172,6 +173,7 @@ const config = {
|
|||||||
label: 'Blog',
|
label: 'Blog',
|
||||||
href: 'https://blog.gitea.com',
|
href: 'https://blog.gitea.com',
|
||||||
className: 'internal-href',
|
className: 'internal-href',
|
||||||
|
target: '_self',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'custom-apiDropdown',
|
type: 'custom-apiDropdown',
|
||||||
@@ -212,6 +214,7 @@ const config = {
|
|||||||
label: 'Sign In',
|
label: 'Sign In',
|
||||||
position: 'right',
|
position: 'right',
|
||||||
className: 'internal-href signin-button',
|
className: 'internal-href signin-button',
|
||||||
|
target: '_self',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -10,5 +10,8 @@
|
|||||||
},
|
},
|
||||||
"item.label.Support": {
|
"item.label.Support": {
|
||||||
"message": "支持"
|
"message": "支持"
|
||||||
|
},
|
||||||
|
"item.label.Blog": {
|
||||||
|
"message": "博客"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user