Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
make global search default version the same as website version
Browse files Browse the repository at this point in the history
  • Loading branch information
ys2843 committed May 18, 2020
1 parent 4693954 commit f038f5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/static_site/src/_includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@
<input id="global-search" type="text" title="Search" placeholder="Search" />
<div id="global-search-dropdown-container">
<button class="gs-current-version btn" type="button" data-toggle="dropdown">
<span id="gs-current-version-label">{{site.versions[1]}}</span>
<span id="gs-current-version-label">{{site.versions[0]}}</span>
<svg class="gs-dropdown-caret" viewBox="0 0 32 32" class="icon icon-caret-bottom" aria-hidden="true">
<path class="dropdown-caret-path" d="M24 11.305l-7.997 11.39L8 11.305z"></path>
</svg>
</button>
<ul class="gs-opt-group gs-version-dropdown">
{% for version in site.versions %}
{% if version == site.versions[1] %}
{% if version == site.versions[0] %}
<li class="gs-opt gs-versions active">{{version}}</li>
{% else %}
<li class="gs-opt gs-versions">{{version}}</li>
Expand All @@ -71,7 +71,7 @@
</button>
<ul class="gs-opt-group gs-version-dropdown-mobile">
{% for version in site.versions %}
{% if version == site.versions[1] %}
{% if version == site.versions[0] %}
<li class="gs-opt gs-versions active">{{version}}</li>
{% else %}
<li class="gs-opt gs-versions">{{version}}</li>
Expand Down

0 comments on commit f038f5e

Please sign in to comment.