mirror of
https://github.com/kubesphere/website.git
synced 2025-12-26 00:12:48 +00:00
Merge pull request #3282 from fuchunlan/disable-doc-list
fix: Disable doc list url
This commit is contained in:
commit
a187bddd58
|
|
@ -2,10 +2,6 @@
|
|||
title: "Documentation"
|
||||
css: "scss/docs.scss"
|
||||
isDocsRoot: true
|
||||
_build:
|
||||
render: never
|
||||
list: never
|
||||
publishResources: false
|
||||
|
||||
LinkTitle: "文档"
|
||||
|
||||
|
|
|
|||
|
|
@ -2,10 +2,6 @@
|
|||
title: "Documentation"
|
||||
css: "scss/docs.scss"
|
||||
isDocsRoot: true
|
||||
_build:
|
||||
render: never
|
||||
list: never
|
||||
publishResources: false
|
||||
|
||||
LinkTitle: "文档"
|
||||
|
||||
|
|
|
|||
|
|
@ -3,10 +3,6 @@ title: 文档中心
|
|||
css: scss/docs.scss
|
||||
isDocsRoot: true
|
||||
LinkTitle: 文档
|
||||
_build:
|
||||
render: never
|
||||
list: never
|
||||
publishResources: false
|
||||
|
||||
section1:
|
||||
title: KubeSphere
|
||||
|
|
|
|||
|
|
@ -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 }}
|
||||
<script>window.location.replace('/404.html');</script>
|
||||
<noscript>
|
||||
<meta http-equiv="refresh" content="0; url=/404.html">
|
||||
</noscript>
|
||||
{{ return }}
|
||||
{{ end }}
|
||||
|
||||
{{ with .Params.section1 }}
|
||||
<section class='section-1 bg-cover' style='background-image: url("{{ .image }}");'>
|
||||
<div class="title-div common-layout">
|
||||
|
|
|
|||
|
|
@ -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) }}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0; url=/404.html">
|
||||
<script>window.location = '/404.html';</script>
|
||||
</head>
|
||||
<body></body>
|
||||
</html>
|
||||
{{ return }}
|
||||
{{ end }}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
|
||||
<head>
|
||||
|
|
|
|||
Loading…
Reference in New Issue