diff --git a/config/_default/config.toml b/config/_default/config.toml index 0b5b7cffe..19b80acbc 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -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 diff --git a/config/upstream-zh/config.toml b/config/upstream-zh/config.toml deleted file mode 100644 index 10038580a..000000000 --- a/config/upstream-zh/config.toml +++ /dev/null @@ -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" diff --git a/config/upstream/config.toml b/config/upstream/config.toml deleted file mode 100644 index aefaf6738..000000000 --- a/config/upstream/config.toml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 7c1e00a66..46762e2ef 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -34,12 +34,12 @@ {{ end }} -{{ if .Site.Params.addBaiduAnalytics }} +{{ if .Site.Params.baiduAnalyticsID }} +{{ if .Site.Params.googleAnalyticsID }} + {{ end }} diff --git a/nginx.conf b/nginx.conf deleted file mode 100644 index 7223c76eb..000000000 --- a/nginx.conf +++ /dev/null @@ -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 '\n\t\n\t\n\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; - } - -}