2019-03-28 19:40:33 -04:00
|
|
|
<div class="search-content__inner-wrap">
|
2023-02-10 04:44:06 -05:00
|
|
|
{%- assign search_provider = site.search_provider | default: "lunr" -%}
|
|
|
|
{%- case search_provider -%}
|
2019-03-28 19:40:33 -04:00
|
|
|
{%- when "lunr" -%}
|
2023-02-10 04:44:06 -05:00
|
|
|
<form class="search-content__form" onkeydown="return event.key != 'Enter';" role="search">
|
|
|
|
<label class="sr-only" for="search">
|
|
|
|
{{ site.data.ui-text[site.locale].search_label_text | default: 'Enter your search term...' }}
|
|
|
|
</label>
|
|
|
|
<input type="search" id="search" class="search-input" tabindex="-1" placeholder="{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" />
|
|
|
|
</form>
|
|
|
|
<div id="results" class="results"></div>
|
2019-03-28 19:40:33 -04:00
|
|
|
{%- when "google" -%}
|
2023-02-10 04:44:06 -05:00
|
|
|
<form onsubmit="return googleCustomSearchExecute();" id="cse-search-box-form-id" role="search">
|
|
|
|
<label class="sr-only" for="cse-search-input-box-id">
|
|
|
|
{{ site.data.ui-text[site.locale].search_label_text | default: 'Enter your search term...' }}
|
|
|
|
</label>
|
|
|
|
<input type="search" id="cse-search-input-box-id" class="search-input" tabindex="-1" placeholder="{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" />
|
|
|
|
</form>
|
|
|
|
<div id="results" class="results">
|
|
|
|
<gcse:searchresults-only></gcse:searchresults-only>
|
|
|
|
</div>
|
2019-03-28 19:40:33 -04:00
|
|
|
{%- when "algolia" -%}
|
2023-02-10 04:44:06 -05:00
|
|
|
<div class="search-searchbar"></div>
|
|
|
|
<div class="search-hits"></div>
|
|
|
|
{%- endcase -%}
|
2019-03-28 19:40:33 -04:00
|
|
|
</div>
|