mirror of
https://github.com/kubesphere/website.git
synced 2025-12-26 00:12:48 +00:00
Combined Chinese and English sites
Signed-off-by: Zhengyi Lai <zheng1@kubesphere.io>
This commit is contained in:
parent
5b88a0473b
commit
81e8744682
|
|
@ -37,6 +37,9 @@ linkedinLink = "https://www.linkedin.com/company/kubesphere/"
|
|||
DemoLinkEn = "https://kubesphere.cloud/en/console/managed-cluster/"
|
||||
DemoLinkZh = "https://kubesphere.cloud/console/managed-cluster/"
|
||||
|
||||
baiduAnalyticsID = "2ce8cd34a797c71de60aa07dd2ea7686"
|
||||
googleAnalyticsID = "G-YYCVN36HT5"
|
||||
|
||||
[languages.en]
|
||||
contentDir = "content/en"
|
||||
weight = 1
|
||||
|
|
@ -50,6 +53,10 @@ keywords = "KubeSphere, Kubernetes, container platform, DevOps, hybrid cloud, cl
|
|||
snapshot = "/images/common/snapshot-en.png"
|
||||
useSendcloud = false
|
||||
mailchimpSubscribeUrl = "https://kubesphere.us10.list-manage.com/subscribe/post?u=c85ea2b944b08b951f607bdd4&id=83f673a2d9"
|
||||
hotjarTracking = true
|
||||
youtubeLink = "https://www.youtube.com/c/KubeSphere"
|
||||
addLinkedin = true
|
||||
addTwitter = true
|
||||
|
||||
[[languages.en.menu.main]]
|
||||
weight = 2
|
||||
|
|
@ -203,6 +210,8 @@ keywords = "KubeSphere, Kubernetes, 容器平台, DevOps, 混合云"
|
|||
snapshot = "/images/common/snapshot-zh.png"
|
||||
useSendcloud = true
|
||||
mailchimpSubscribeUrl = "https://www.sendcloud.net/v3/api/subInvite/subscription?invitecode=1dc5a4fb-894c-4470-b01d-ca7fa9d47a46"
|
||||
showCaseNumber = true
|
||||
bilibiliLink = "https://space.bilibili.com/438908638"
|
||||
|
||||
[[languages.zh.menu.main]]
|
||||
weight = 2
|
||||
|
|
|
|||
|
|
@ -1,19 +0,0 @@
|
|||
baseURL = "https://kubesphere.com.cn"
|
||||
defaultContentLanguage = "zh"
|
||||
|
||||
[params]
|
||||
showCaseNumber = true
|
||||
|
||||
addBaiduAnalytics = true
|
||||
|
||||
bilibiliLink = "https://space.bilibili.com/438908638"
|
||||
|
||||
applyAllInOne = true
|
||||
|
||||
[languages.en.params]
|
||||
useSendcloud = true
|
||||
mailchimpSubscribeUrl = "https://www.sendcloud.net/v3/api/subInvite/subscription?invitecode=1dc5a4fb-894c-4470-b01d-ca7fa9d47a46"
|
||||
|
||||
[languages.zh.params]
|
||||
useSendcloud = true
|
||||
mailchimpSubscribeUrl = "https://www.sendcloud.net/v3/api/subInvite/subscription?invitecode=1dc5a4fb-894c-4470-b01d-ca7fa9d47a46"
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
baseURL = "https://kubesphere.io"
|
||||
|
||||
[params]
|
||||
|
||||
applyAllInOne = false
|
||||
addGoogleAnalytics = true
|
||||
addGoogleTag = true
|
||||
hotjarTracking = true
|
||||
youtubeLink = "https://www.youtube.com/c/KubeSphere"
|
||||
addLinkedin = true
|
||||
addTwitter = true
|
||||
useSendcloud = false
|
||||
|
|
@ -34,12 +34,12 @@
|
|||
{{ end }}
|
||||
|
||||
<!-- Baidu Analytics -->
|
||||
{{ if .Site.Params.addBaiduAnalytics }}
|
||||
{{ if .Site.Params.baiduAnalyticsID }}
|
||||
<script>
|
||||
var _hmt = _hmt || [];
|
||||
(function() {
|
||||
var hm = document.createElement("script");
|
||||
hm.src = "https://hm.baidu.com/hm.js?2ce8cd34a797c71de60aa07dd2ea7686";
|
||||
hm.src = "https://hm.baidu.com/hm.js?{{ .Site.Params.baiduAnalyticsID }}";
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
|
@ -47,15 +47,15 @@
|
|||
{{ end }}
|
||||
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
{{ if .Site.Params.addGoogleAnalytics }}
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-YYCVN36HT5"></script>
|
||||
{{ if .Site.Params.googleAnalyticsID }}
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ .Site.Params.googleAnalyticsID }}"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
|
||||
gtag('config', 'G-YYCVN36HT5');
|
||||
gtag('config', '{{ .Site.Params.googleAnalyticsID }}');
|
||||
</script>
|
||||
{{ end }}
|
||||
|
||||
|
|
|
|||
28
nginx.conf
28
nginx.conf
|
|
@ -1,28 +0,0 @@
|
|||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name localhost;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
|
||||
location ~ /([A-Za-z0-9_-]+)(/[A-Za-z0-9_.-]+)*$ {
|
||||
if ($args = "go-get=1") {
|
||||
return 200 '<html><head>\n\t<meta name="go-import" content="$host/$1 git https://github.com/kubesphere/$1">\n\t<meta name="go-source" content="$host/$1 https://github.com/kubesphere/$1 https://github.com/kubesphere/$1/tree/master/{/dir} https://github.com/kubesphere/$1/blob/master/{/dir}/{/file}#L{/line}">\n</head></html>\n';
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#error_page 404 /404.html;
|
||||
|
||||
# redirect server error pages to the static page /50x.html
|
||||
#
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue