File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
site/themes/arangodb-docs-theme/layouts/partials Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1313{{- with .Site.Params.author }}
1414< meta name ="author " content ="{{ . }} ">
1515{{- end }}
16- {{- $versionShort := .Page.Store.Get "versionShort " }}
17- {{- $versionAlias := .Page.Store.Get "alias" }}
18- {{- if $versionShort - }}
19- < meta name ="docsearch:version " content ="{{ $versionShort }}{{ if ne $versionShort $versionAlias }},{{ $versionAlias }}{{ end }} ">
16+ {{- $splitPath := split .Path "/ " }}
17+ {{- if and (hasPrefix .Path "/arangodb/") (ge ($splitPath | len) 3) }}
18+ {{- $coreVersion := index $splitPath 2 }}
19+ < meta name ="docsearch:version " content ="{{ $coreVersion }} ">
2020{{- else }}
2121 {{- $shortVersions := slice }}
2222 {{- $versions := index site.Data.versions "/arangodb/" }}
You can’t perform that action at this time.
0 commit comments