Skip to content

Commit 386a97d

Browse files
committed
Set version number and alias as DocSearch versions
1 parent a377063 commit 386a97d

File tree

1 file changed

+3
-2
lines changed
  • site/themes/arangodb-docs-theme/layouts/partials

1 file changed

+3
-2
lines changed

site/themes/arangodb-docs-theme/layouts/partials/meta.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
<meta name="author" content="{{ . }}">
1515
{{- end }}
1616
{{- $versionShort := .Page.Store.Get "versionShort" }}
17-
{{- with $versionShort }}
18-
<meta name="docsearch:version" content="{{ . }}">
17+
{{- $versionAlias := .Page.Store.Get "alias" }}
18+
{{- if $versionShort }}
19+
<meta name="docsearch:version" content="{{ $versionShort }}{{ if ne $versionShort $versionAlias }},{{ $versionAlias }}{{ end }}">
1920
{{- end }}
2021
{{- if (hasPrefix .Path "/arangodb/") }}
2122
{{- if or (.Page.Store.Get "deprecated") (.Page.Store.Get "inDevelopment") }}<meta name="robots" content="noindex">{{ end }}

0 commit comments

Comments
 (0)