Skip to content

Commit 2bc4527

Browse files
committed
adds search bar as last element in top horizontal nav bar
1 parent 81c2ec9 commit 2bc4527

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/partials/header-content.hbs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,15 @@
9292
</svg>
9393
</a>
9494
</div>
95+
96+
{{#if env.SITE_SEARCH_PROVIDER}}
97+
<div class="navbar-item search hide-for-print">
98+
<div id="search-field" class="field">
99+
<input id="search-input" type="text" placeholder="Search the docs"{{#if page.home}} autofocus{{/if}}>
100+
</div>
101+
</div>
102+
{{/if}}
103+
95104
</div>
96105
</div>
97106
</nav>

0 commit comments

Comments
 (0)