meta修改cont.

This commit is contained in:
黄心宇 2024-03-25 10:05:03 +08:00
parent c5b3dd99dd
commit 9cd5b7d158
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])