datat.fi/_includes/search-form.html

14 lines
579 B
HTML
Raw Normal View History

<div class="inner">
{% if site.search %}
{%- assign search_provider = site.search_provider | default: "lunr" -%}
{%- case search_provider -%}
{%- when "lunr" -%}
<input type="text" id="search" class="search-input" tabindex="-1" placeholder="{{ site.data.theme.t.menu.search_placeholder_text | default: 'Enter your search term...' }}" />
<div id="results" class="results"></div>
{%- when "algolia" -%}
<div tabindex="-1" class="search-searchbar"></div>
<div class="search-hits"></div>
{%- endcase -%}
{% endif %}
</div>