aboutsummaryrefslogtreecommitdiff
path: root/_layouts/search.html
diff options
context:
space:
mode:
Diffstat (limited to '_layouts/search.html')
-rw-r--r--_layouts/search.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/_layouts/search.html b/_layouts/search.html
new file mode 100644
index 0000000..d18f223
--- /dev/null
+++ b/_layouts/search.html
@@ -0,0 +1,42 @@
+---
+layout: default
+---
+
+{% if page.header.overlay_color or page.header.overlay_image or page.header.image %}
+ {% include page__hero.html %}
+{% endif %}
+
+{% if page.url != "/" and site.breadcrumbs %}
+ {% unless paginator %}
+ {% include breadcrumbs.html %}
+ {% endunless %}
+{% endif %}
+
+<div id="main" role="main">
+ {% include sidebar.html %}
+
+ <div class="archive">
+ {% unless page.header.overlay_color or page.header.overlay_image %}
+ <h1 id="page-title" class="page__title">{{ page.title }}</h1>
+ {% endunless %}
+
+ {{ content }}
+
+ {%- 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.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" />
+ <div id="results" class="results"></div>
+ {%- when "google" -%}
+ <form onsubmit="return googleCustomSearchExecute();" id="cse-search-box-form-id">
+ <input type="text" 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>
+ {%- when "algolia" -%}
+ <div class="search-searchbar"></div>
+ <div class="search-hits"></div>
+ {%- endcase -%}
+ </div>
+</div>