Merge pull request 'meta修改cont.' (#628) from Eeeros/forgeplus-react:gitlink_server into gitlink_server

1
This commit is contained in:
Eeeros 2024-04-01 15:16:10 +08:00
commit a3b93e3c35
2 changed files with 5 additions and 2 deletions

View File

@ -17,6 +17,9 @@
<meta name="keyboard-shortcuts-preference" content="all">
<meta name="expected-hostname" content="gitlink.org.cn">
<meta name="go-import" content="gitlink.org.cn git https://gitlink.org.cn">
<meta name="octolytics-dimension-user_login" content="GitLink"></meta>
<meta name="octolytics-dimension-repository_nwo" content="GitLink"></meta>
<meta name="octolytics-dimension-repository_network_root_nwo" content="GitLink"></meta>
<meta name="theme-color" content="#000000">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="referrer" content="always">

View File

@ -109,9 +109,9 @@ function CoderDepot(props){
const { author, name, description, default_branch} = projectDetail;
if(branchName && branchName !== default_branch){
// /
document.title = `${author.name}/${name}-${branchName}-for gitlink;for git`;
document.title = `${author.name}/${name}-${branchName} | GitLink`;
}else{
document.title = `${author.name}/${name}${description?': '+description:''}-for gitlink;for git` ;
document.title = `${author.name}/${name}${description?': '+description:''} | GitLink` ;
}
}
}, [treeValuePath, projectDetail, branchName])