mirror of
https://github.com/kubesphere/website.git
synced 2025-12-26 00:12:48 +00:00
fix: support docs switch to '/docs/v3.3'
Signed-off-by: TheYoungManLi <cjl@kubesphere.io>
This commit is contained in:
parent
a443b12718
commit
e44cf902c2
|
|
@ -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") }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue