Signed-off-by: lannyfu <lannyfu@kubesphere.io>
This commit is contained in:
lannyfu 2025-07-31 10:57:45 +08:00
parent 53fa4b0b88
commit 4c0cd9da43

View File

@ -1,3 +1,15 @@
{{ $disabled := or (hasPrefix .RelPermalink "/zh/docs/v3.3")
(hasPrefix .RelPermalink "/zh/docs/v3.4")
(hasPrefix .RelPermalink "/zh/docs/v4.1")
(hasPrefix .RelPermalink "/docs/v3.3")
(hasPrefix .RelPermalink "/docs/v3.4")
(hasPrefix .RelPermalink "/docs/v4.1") }}
{{ if $disabled }}
{{ partial "404" . }}
{{ .Scratch.Set "renderEnabled" false }}
{{ end }}
<!DOCTYPE html>
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">