diff --git a/content/zh/docs/v3.3/_index.md b/content/zh/docs/v3.3/_index.md index b25eb4c6e..de86e2bf5 100644 --- a/content/zh/docs/v3.3/_index.md +++ b/content/zh/docs/v3.3/_index.md @@ -2,10 +2,6 @@ title: "Documentation" css: "scss/docs.scss" isDocsRoot: true -_build: - render: never - list: never - publishResources: false LinkTitle: "文档" diff --git a/content/zh/docs/v3.4/_index.md b/content/zh/docs/v3.4/_index.md index fdb2aa405..f55904350 100644 --- a/content/zh/docs/v3.4/_index.md +++ b/content/zh/docs/v3.4/_index.md @@ -2,10 +2,6 @@ title: "Documentation" css: "scss/docs.scss" isDocsRoot: true -_build: - render: never - list: never - publishResources: false LinkTitle: "文档" diff --git a/content/zh/docs/v4.1/_index.adoc b/content/zh/docs/v4.1/_index.adoc index b84e1d30d..233af96b6 100644 --- a/content/zh/docs/v4.1/_index.adoc +++ b/content/zh/docs/v4.1/_index.adoc @@ -3,10 +3,6 @@ title: 文档中心 css: scss/docs.scss isDocsRoot: true LinkTitle: 文档 -_build: - render: never - list: never - publishResources: false section1: title: KubeSphere diff --git a/layouts/docs/list.html b/layouts/docs/list.html index 3f14d5661..3c40c5717 100644 --- a/layouts/docs/list.html +++ b/layouts/docs/list.html @@ -1,5 +1,16 @@ {{ define "main" }} +{{ $disabledVersions := slice "v3.3" "v3.4" "v4.1" }} +{{ $currentVersion := index (strings.FindRE `v[0-9]+\.[0-9]+` .RelPermalink) 0 }} + +{{ if in $disabledVersions $currentVersion }} + + + {{ return }} +{{ end }} + {{ with .Params.section1 }}
diff --git a/layouts/docs/second.html b/layouts/docs/second.html index c2639c7bf..b3e0e6b40 100644 --- a/layouts/docs/second.html +++ b/layouts/docs/second.html @@ -1,3 +1,18 @@ +{{ $disabledVersions := slice "v3.3" "v3.4" "v4.1" }} +{{ $currentVersion := index (strings.FindRE `v[0-9]+\.[0-9]+` .Page.RelPermalink) 0 }} + +{{ if and $currentVersion (in $disabledVersions $currentVersion) }} + + + + + + + + + {{ return }} +{{ end }} +