Skip to content

Commit

Permalink
Bug: after merging couchbase/docs-ui#58 the Search box is not being d…
Browse files Browse the repository at this point in the history
…isplayed on page in the `home` and `tutorials` component.

This commit moves the search box HTML outside of the if statements that
checks if the component is `home` or `tutorials`.
  • Loading branch information
jamesnocentini committed Jun 11, 2019
1 parent 7ab68c8 commit c38bbb7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/partials/header.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,19 @@
<a class="navbar-item component" href="{{relativize page.componentVersion.url}}"><span class="title">{{{page.component.title}}}</span>{{#unless (eq page.componentVersion.displayVersion 'master')}} <span class="version">{{page.componentVersion.displayVersion}}</span>{{/unless}}</a>
{{/if}}
{{/if}}
{{#if env.ALGOLIA_API_KEY}}
<form class="navbar-item search">
<input type="text" placeholder="Search Couchbase Docs" class="query" id="search-query">
<button type="button" class="search"><span>Search</span></button>
</form>
{{/if}}
{{/if}}
{{/if}}
{{#if (and page.component (or (eq page.component.name 'tutorials') (eq page.component.name 'userprofile-couchbase-mobile')))}}
<div class="navbar-item">
<a class="navbar-link component" href="/tutorials/index.html"><span class="title">Tutorials</span></a>
</div>
{{/if}}
{{#if env.ALGOLIA_API_KEY}}
<form class="navbar-item search">
<input type="text" placeholder="Search Couchbase Docs" class="query" id="search-query">
<button type="button" class="search"><span>Search</span></button>
</form>
{{/if}}
</div>
<div class="navbar-end">
<div class="navbar-item">
Expand Down

0 comments on commit c38bbb7

Please sign in to comment.