head新增title
This commit is contained in:
parent
ab069eb701
commit
e136408b01
|
|
@ -2,6 +2,7 @@
|
|||
<html lang="zh-hans-CN" class="notranslate translated-ltr" translate="no">
|
||||
|
||||
<head>
|
||||
<title>GitLink,新一代开源创新服务平台 分布式协作开发 一站式过程管理 高效流水线运维 多层次代码分析 多维度用户画像 分布式协作开发 基于Git打造分布式代码托管环境</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="Keywords" Content="gitLink,GitLink,gitlink,git,trustie,trustieforge,forge,开源,确实开源,代码托管,Git,开源,内源,项目管理,版本控制,开源代码,代码分享,项目协作,开源项目托管,免费代码托管,Git代码托管,Git托管服务,确实让创建更美好,协同开发平台">
|
||||
<meta name="description" Content="GitLink,新一代开源创新服务平台 分布式协作开发 一站式过程管理 高效流水线运维 多层次代码分析 多维度用户画像 分布式协作开发 基于Git打造分布式代码托管环境">
|
||||
|
|
|
|||
|
|
@ -356,8 +356,8 @@ export function setSeoMeta(keyWords, title, description, url, owner, projectId)
|
|||
// 服务端没有location
|
||||
const host = window.location.host === 'null' || !window.location.host ? ssrHost : window.location.host
|
||||
const origin = window.location.origin === 'null' || !window.location.origin ? ssrOrigin : window.location.origin
|
||||
|
||||
document.querySelector(`meta[property='og:title']`).content = title + keyStatement + ' for gitlink' + keyStatement + ' for git';
|
||||
document.querySelector(`title`).textContent = title + ' for gitlink';
|
||||
document.querySelector(`meta[property='og:url']`).content = origin + url;
|
||||
document.querySelector(`meta[property='og:description']`).content = description + ' - ' + title + ' for gitlink' + keyStatement + ' for git';
|
||||
document.querySelector(`meta[property='og:image:alt']`).content = description + ' - ' + title + ' for gitlink' + keyStatement + ' for git';
|
||||
|
|
@ -379,6 +379,7 @@ export function setDefaultMeta() {
|
|||
if (domObj) {
|
||||
document = domObj.window.document
|
||||
}
|
||||
document.querySelector(`title`).textContent = 'GitLink,新一代开源创新服务平台 分布式协作开发 一站式过程管理 高效流水线运维 多层次代码分析 多维度用户画像 分布式协作开发 基于Git打造分布式代码托管环境';
|
||||
document.querySelector(`meta[property='og:title']`).content = 'GitLink | 确实开源';
|
||||
document.querySelector(`meta[property='og:url']`).content = 'https://gitlink.org.cn/';
|
||||
document.querySelector(`meta[property='og:description']`).content = 'GitLink,新一代开源创新服务平台 分布式协作开发 一站式过程管理 高效流水线运维 多层次代码分析 多维度用户画像 分布式协作开发 基于Git打造分布式代码托管环境';
|
||||
|
|
|
|||
Loading…
Reference in New Issue