fix: support docs switch to '/docs/v3.3'

Signed-off-by: TheYoungManLi <cjl@kubesphere.io>
This commit is contained in:
TheYoungManLi 2022-06-23 16:09:11 +08:00
parent a443b12718
commit e44cf902c2

View File

@ -25,11 +25,14 @@
{{ if .IsDescendant (.GetPage "/docs") }}
<link rel="stylesheet" href="/npm/docsearch.js@2/dist/cdn/docsearch.min.css">
{{ if not (eq . (.GetPage "/docs"))}}
{{ $style := resources.Get "scss/doc.scss" | toCSS | minify | fingerprint }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
{{ end }}
<link rel="stylesheet" href="/npm/docsearch.js@2/dist/cdn/docsearch.min.css">
{{ if not (eq . (.GetPage "/docs"))}}
{{ $folder := . }}
{{ if not $folder.Params.isDocsRoot }}
{{ $style := resources.Get "scss/doc.scss" | toCSS | minify | fingerprint }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
{{ end }}
{{ end }}
{{ end }}
{{ if .IsDescendant (.GetPage "/learn") }}