From e62e7bb6b14555c9bbe5d40d217103984f4f80e6 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 27 Oct 2019 09:57:37 -0400 Subject: Rewrite progress --- _includes/search/algolia-search-scripts.html | 54 ++++++++++++++++++++++++++++ _includes/search/google-search-scripts.html | 30 ++++++++++++++++ _includes/search/lunr-search-scripts.html | 10 ++++++ _includes/search/search_form.html | 26 ++++++++++++++ 4 files changed, 120 insertions(+) create mode 100644 _includes/search/algolia-search-scripts.html create mode 100644 _includes/search/google-search-scripts.html create mode 100644 _includes/search/lunr-search-scripts.html create mode 100644 _includes/search/search_form.html (limited to '_includes/search') diff --git a/_includes/search/algolia-search-scripts.html b/_includes/search/algolia-search-scripts.html new file mode 100644 index 0000000..a6bc9d2 --- /dev/null +++ b/_includes/search/algolia-search-scripts.html @@ -0,0 +1,54 @@ + + + + + + diff --git a/_includes/search/google-search-scripts.html b/_includes/search/google-search-scripts.html new file mode 100644 index 0000000..4af7423 --- /dev/null +++ b/_includes/search/google-search-scripts.html @@ -0,0 +1,30 @@ + \ No newline at end of file diff --git a/_includes/search/lunr-search-scripts.html b/_includes/search/lunr-search-scripts.html new file mode 100644 index 0000000..574c390 --- /dev/null +++ b/_includes/search/lunr-search-scripts.html @@ -0,0 +1,10 @@ +{% assign lang = site.locale | slice: 0,2 | default: "en" %} +{% case lang %} +{% when "gr" %} + {% assign lang = "gr" %} +{% else %} + {% assign lang = "en" %} +{% endcase %} + + + \ No newline at end of file diff --git a/_includes/search/search_form.html b/_includes/search/search_form.html new file mode 100644 index 0000000..c346379 --- /dev/null +++ b/_includes/search/search_form.html @@ -0,0 +1,26 @@ +
+ {%- assign search_provider = site.search_provider | default: "lunr" -%} + {%- case search_provider -%} + {%- when "lunr" -%} +
+ + +
+
+ {%- when "google" -%} +
+ + +
+
+ +
+ {%- when "algolia" -%} + +
+ {%- endcase -%} +
-- cgit v1.2.3