meta修改cont.
This commit is contained in:
parent
c5b3dd99dd
commit
9cd5b7d158
|
@ -17,6 +17,9 @@
|
||||||
<meta name="keyboard-shortcuts-preference" content="all">
|
<meta name="keyboard-shortcuts-preference" content="all">
|
||||||
<meta name="expected-hostname" content="gitlink.org.cn">
|
<meta name="expected-hostname" content="gitlink.org.cn">
|
||||||
<meta name="go-import" content="gitlink.org.cn git https://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 name="theme-color" content="#000000">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="referrer" content="always">
|
<meta name="referrer" content="always">
|
||||||
|
|
|
@ -109,9 +109,9 @@ function CoderDepot(props){
|
||||||
const { author, name, description, default_branch} = projectDetail;
|
const { author, name, description, default_branch} = projectDetail;
|
||||||
if(branchName && branchName !== default_branch){
|
if(branchName && branchName !== default_branch){
|
||||||
// 处于某分支/标签
|
// 处于某分支/标签
|
||||||
document.title = `${author.name}/${name}-${branchName}-for gitlink;for git`;
|
document.title = `${author.name}/${name}-${branchName} | GitLink`;
|
||||||
}else{
|
}else{
|
||||||
document.title = `${author.name}/${name}${description?': '+description:''}-for gitlink;for git` ;
|
document.title = `${author.name}/${name}${description?': '+description:''} | GitLink` ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, [treeValuePath, projectDetail, branchName])
|
}, [treeValuePath, projectDetail, branchName])
|
||||||
|
|
Loading…
Reference in New Issue