mirror of
https://github.com/kubesphere/website.git
synced 2025-12-26 00:12:48 +00:00
add meta tag for docsearch
Signed-off-by: Ray Zhou <rayzhou4@gmail.com>
This commit is contained in:
parent
16ef95281d
commit
9c4cb13dae
|
|
@ -16,6 +16,8 @@
|
|||
<meta property="twitter:image" content="{{ with .Params.snapshot }}{{ . | absURL }}{{ else }}{{ with .Site.Params.snapshot }}{{ . | absURL }}{{ end }}{{ end }}"/>
|
||||
|
||||
<meta name="docsearch:language" content="{{ .Site.LanguageCode }}" />
|
||||
{{ define "recursiveVersion" }}{{ if isset . "version" }}{{ .Version }}{{ else if .Params.section1.version }}{{ .Params.section1.version }}{{ else if .Parent }}{{ template "recursiveVersion" .Parent }}{{ else }}{{ end }}{{ end }}
|
||||
<meta name="docsearch:version" content='{{ template "recursiveVersion" . }}' />
|
||||
|
||||
<link rel="canonical" href="https://kubesphere.io{{ .RelPermalink }}" />
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue