调整网站结构

This commit is contained in:
huanqing.shao
2019-11-01 17:54:26 +08:00
parent f733109d1d
commit 8171e6ccce
26 changed files with 710 additions and 1058 deletions

View File

@ -81,17 +81,7 @@ module.exports = siteData => {
selfTitle = page.frontmatter.titlePrefix + '_' + selfTitle
}
let isNotSharing = true
if (typeof window !== 'undefined') {
if (location.search !== undefined && location.search.indexOf('sharing') >= 0) {
// 如果带参数 sharing则设置 isNotSharing = false
isNotSharing = false
} else {
isNotSharing = true
}
}
if (page.path.indexOf('/learning/') === 0 && isNotSharing) {
if (page.path.indexOf('/learning/') === 0) {
return selfTitle + '_Kubernetes教程_K8S教程_K8S培训'
}
if (page.path.indexOf('/install/') === 0) {