update header to make it the same as blog (#43)

Follows https://gitea.com/gitea/blog/pulls/266, should wait for the PR because it has href points to https://blog.gitea.com

PC:

![Screen Shot 2023-07-12 at 08.53.32](/attachments/8742094d-bdca-404a-bd1f-ef34df5af328)

Mobile:

![Screen Shot 2023-07-12 at 08.53.45](/attachments/947785d6-535b-4867-91c6-1a3c465b6fdc)

Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/43
Co-authored-by: HesterG <[email protected]>
Co-committed-by: HesterG <[email protected]>
This commit is contained in:
HesterG
2023-07-12 03:55:43 +00:00
committed by Lunny Xiao
parent d6ee444476
commit 2141715f56
2 changed files with 77 additions and 1 deletions
+14 -1
View File
@@ -152,6 +152,7 @@ const config = {
logo: {
alt: 'Gitea Logo',
src: 'img/gitea.svg',
href: 'https://about.gitea.com/',
},
items: [
{
@@ -166,6 +167,12 @@ const config = {
position: 'left',
activeBaseRegex: 'api/(1.19|1.20|next)/',
},
{
position: 'left',
label: 'Blog',
href: 'https://blog.gitea.com',
className: 'internal-href',
},
{
type: 'custom-apiDropdown',
label: 'API Version',
@@ -199,7 +206,13 @@ const config = {
position: 'right',
label: 'Support',
activeBaseRegex: 'help/seek-help',
}
},
{
href: 'https://gitea.com/user/login',
label: 'Sign In',
position: 'right',
className: 'internal-href signin-button',
},
],
},
footer: {