修改平台名称
This commit is contained in:
parent
1267021866
commit
290d89f871
|
|
@ -358,13 +358,13 @@ export function setDefaultMeta() {
|
|||
if (__SERVER__) {
|
||||
document = domObj.window.document
|
||||
}
|
||||
document.querySelector(`title`).textContent = '生态治理平台 | 新一代开源创新服务平台';
|
||||
document.querySelector(`meta[property='og:title']`).content = '生态治理平台';
|
||||
document.querySelector(`title`).textContent = '菌队可控开源社区 | 新一代开源创新服务平台';
|
||||
document.querySelector(`meta[property='og:title']`).content = '菌队可控开源社区';
|
||||
document.querySelector(`meta[property='og:url']`).content = 'https://GitLink.org.cn/';
|
||||
document.querySelector(`meta[property='og:description']`).content = '生态治理平台 是一个新一代的开源创新服务平台,提供分布式协作开发、流水线运维、代码分析等功能,基于 Git 打造分布式代码托管环境。';
|
||||
document.querySelector(`meta[property='og:image:alt']`).content = '生态治理平台';
|
||||
document.querySelector('meta[name="Keywords"]').content= '生态治理平台, git, 开源, 代码托管, 项目管理, 版本控制, 代码分享, 项目协作, 协同开发平台';
|
||||
document.querySelector(`meta[name='description']`).content = '生态治理平台 是一个新一代的开源创新服务平台,提供分布式协作开发、流水线运维、代码分析等功能,基于 Git 打造分布式代码托管环境。';
|
||||
document.querySelector(`meta[property='og:description']`).content = '菌队可控开源社区 是一个新一代的开源创新服务平台,提供分布式协作开发、流水线运维、代码分析等功能,基于 Git 打造分布式代码托管环境。';
|
||||
document.querySelector(`meta[property='og:image:alt']`).content = '菌队可控开源社区';
|
||||
document.querySelector('meta[name="Keywords"]').content= '菌队可控开源社区, git, 开源, 代码托管, 项目管理, 版本控制, 代码分享, 项目协作, 协同开发平台';
|
||||
document.querySelector(`meta[name='description']`).content = '菌队可控开源社区 是一个新一代的开源创新服务平台,提供分布式协作开发、流水线运维、代码分析等功能,基于 Git 打造分布式代码托管环境。';
|
||||
document.querySelector(`meta[name='go-import']`).content ='GitLink.org.cn git https://GitLink.org.cn';
|
||||
document.querySelector(`meta[name='octolytics-dimension-user_login']`).content = 'GitLink';
|
||||
document.querySelector(`meta[name='octolytics-dimension-repository_nwo']`).content = 'GitLink';
|
||||
|
|
|
|||
|
|
@ -128,8 +128,8 @@ export function configShareForCustom (title, desc, imgUrl, path) {
|
|||
console.log('configShareForCustom', host)
|
||||
const _url = window.location.href.split('#')[0];
|
||||
var shareData = {
|
||||
title: title || '生态治理平台',
|
||||
desc: desc || '生态治理平台,新一代开源创新服务平台',
|
||||
title: title || '菌队可控开源社区',
|
||||
desc: desc || '菌队可控开源社区,新一代开源创新服务平台',
|
||||
link: path ? `${host}/${path}` : _url,
|
||||
imgUrl: imgUrl || host + '/build/images/share_logo_icon.png'
|
||||
};
|
||||
|
|
|
|||
|
|
@ -132,9 +132,9 @@ function CoderDepot(props){
|
|||
const { author, name, description, default_branch} = projectDetail;
|
||||
if(branchName && branchName !== default_branch){
|
||||
// 处于某分支/标签
|
||||
document.title = `${author.name}/${name}-${branchName} | 生态治理平台`;
|
||||
document.title = `${author.name}/${name}-${branchName} | 菌队可控开源社区`;
|
||||
}else{
|
||||
document.title = `${author.name}/${name}${description?': '+description:''} | 生态治理平台` ;
|
||||
document.title = `${author.name}/${name}${description?': '+description:''} | 菌队可控开源社区` ;
|
||||
}
|
||||
}
|
||||
}, [treeValuePath, projectDetail, branchName])
|
||||
|
|
|
|||
Loading…
Reference in New Issue