search.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ---
  2. layout: default
  3. ---
  4. {% if page.header.overlay_color or page.header.overlay_image or page.header.image %}
  5. {% include page__hero.html %}
  6. {% endif %}
  7. {% if page.url != "/" and site.breadcrumbs %}
  8. {% unless paginator %}
  9. {% include breadcrumbs.html %}
  10. {% endunless %}
  11. {% endif %}
  12. <div id="main" role="main">
  13. {% include sidebar.html %}
  14. <div class="archive">
  15. {% unless page.header.overlay_color or page.header.overlay_image %}
  16. <h1 id="page-title" class="page__title">{{ page.title }}</h1>
  17. {% endunless %}
  18. {{ content }}
  19. {%- assign search_provider = site.search_provider | default: "lunr" -%}
  20. {%- case search_provider -%}
  21. {%- when "lunr" -%}
  22. <input type="text" id="search" class="search-input" placeholder="{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" />
  23. <div id="results" class="results"></div>
  24. {%- when "google" -%}
  25. <form onsubmit="return googleCustomSearchExecute();" id="cse-search-box-form-id">
  26. <input type="text" id="cse-search-input-box-id" class="search-input" placeholder="{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" />
  27. </form>
  28. <div id="results" class="results">
  29. <gcse:searchresults-only></gcse:searchresults-only>
  30. </div>
  31. {%- when "algolia" -%}
  32. <div class="search-searchbar"></div>
  33. <div class="search-hits"></div>
  34. {%- endcase -%}
  35. </div>
  36. </div>