Skip to content

Commit

Permalink
docs: Use a single value for algolia version meta
Browse files Browse the repository at this point in the history
As-is we have an array like `["v0.13.4", "latest"]` but it seems that
we aren't referencing it as such, its trying to compare a string
version.

It looks like on the `latest` urls we would set the facetFilter to
be the explicit version, so we'll just stick with that for the meta
tags too.

Signed-off-by: Patrick East <east.patrick@gmail.com>
  • Loading branch information
patrick-east committed Aug 27, 2019
1 parent 1bbe0dd commit d247c41
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions docs/website/layouts/partials/meta.html
Expand Up @@ -7,7 +7,6 @@
{{ $twitter := site.Params.social.twitter }}
{{ $latest := index site.Data.releases 0 }}
{{ $version := index (split .File.Path "/") 1 }}
{{ $isLatest := eq $latest $version }}

<!-- Basic metadata -->
<meta charset="utf-8">
Expand Down Expand Up @@ -46,11 +45,7 @@

<!-- Algolia metadata -->
<meta name="docsearch:language" content="en" />
{{ if $isLatest }}
<meta name="docsearch:version" content='["{{ $version }}", "latest"]' />
{{ else }}
<meta name="docsearch:version" content="{{ $version }}" />
{{ end }}

<!-- Site generator -->
{{ hugo.Generator }}

0 comments on commit d247c41

Please sign in to comment.