mirror of
https://github.com/kubesphere/website.git
synced 2025-12-26 00:12:48 +00:00
Merge pull request #2515 from weili520/docs_subpath
fix: support docs switch to the path as '/docs/v3.3'
This commit is contained in:
commit
6743b07e69
|
|
@ -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