File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
site/themes/arangodb-docs-theme/layouts/partials Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 1515{{- end }}
1616{{- $versionShort := .Page.Store.Get "versionShort" }}
1717{{- $versionAlias := .Page.Store.Get "alias" }}
18- {{- if $versionShort }}
19- < meta name ="docsearch:version " content ="{{ $versionShort }}{{ if ne $versionShort $versionAlias }},{{ $versionAlias }}{{ end }} ">
18+ {{- if $versionShort -}}
19+ < meta name ="docsearch:version " content ="{{ $versionShort }}{{ if ne $versionShort $versionAlias }},{{ $versionAlias }}{{ end }} ">
20+ {{- else }}
21+ {{- $shortVersions := slice }}
22+ {{- $versions := index site.Data.versions "/arangodb/" }}
23+ {{- range $version := $versions }}
24+ {{- $shortVersions = $shortVersions | append $version.name }}
25+ {{- if ne $version.name $version.alias }}
26+ {{- $shortVersions = $shortVersions | append $version.alias }}
27+ {{- end }}
28+ {{- end -}}
29+ < meta name ="docsearch:version " content ="{{ delimit $shortVersions ", " }}">
2030{{- end }}
2131{{- if (hasPrefix .Path "/arangodb/") }}
2232 {{- if or (.Page.Store.Get "deprecated") (.Page.Store.Get "inDevelopment") }}< meta name ="robots " content ="noindex "> {{ end }}
You can’t perform that action at this time.
0 commit comments