From 4feaace4929a07cc34c4bcd6c57334be2d95ec31 Mon Sep 17 00:00:00 2001 From: Yehonal Date: Mon, 17 Dec 2018 16:16:43 +0100 Subject: Implemented js search and SEO optimizations --- _includes/gw_head/meta.html | 3 ++- _includes/gw_tools/search_github.html | 10 ++++++++++ _includes/gw_tools/search_google.html | 12 ++++++++++++ _includes/gw_tools/search_js.html | 15 +++++++++++++++ _includes/gw_tools/search_module.html | 28 +++------------------------- 5 files changed, 42 insertions(+), 26 deletions(-) create mode 100644 _includes/gw_tools/search_github.html create mode 100644 _includes/gw_tools/search_google.html create mode 100644 _includes/gw_tools/search_js.html (limited to '_includes') diff --git a/_includes/gw_head/meta.html b/_includes/gw_head/meta.html index 141ab05..bfae3da 100644 --- a/_includes/gw_head/meta.html +++ b/_includes/gw_head/meta.html @@ -5,7 +5,8 @@ -{{ site.title | default: site.github.repository_name }} by {{ site.github.owner_name }} + +{% seo %} {% if site.inc_after_meta %} {% include {{ site.inc_after_meta }} %} diff --git a/_includes/gw_tools/search_github.html b/_includes/gw_tools/search_github.html new file mode 100644 index 0000000..efcc5e8 --- /dev/null +++ b/_includes/gw_tools/search_github.html @@ -0,0 +1,10 @@ +
+ + {% if site.use_github_wiki %} + + {% else %} + + + {% endif %} + +
\ No newline at end of file diff --git a/_includes/gw_tools/search_google.html b/_includes/gw_tools/search_google.html new file mode 100644 index 0000000..0c3e675 --- /dev/null +++ b/_includes/gw_tools/search_google.html @@ -0,0 +1,12 @@ + + \ No newline at end of file diff --git a/_includes/gw_tools/search_js.html b/_includes/gw_tools/search_js.html new file mode 100644 index 0000000..673fb39 --- /dev/null +++ b/_includes/gw_tools/search_js.html @@ -0,0 +1,15 @@ +
+ +
+ + + \ No newline at end of file diff --git a/_includes/gw_tools/search_module.html b/_includes/gw_tools/search_module.html index f79335a..7664e19 100644 --- a/_includes/gw_tools/search_module.html +++ b/_includes/gw_tools/search_module.html @@ -1,25 +1,3 @@ -{% if site.google_cse_token %} - - -{% else %} -
- - {% if site.use_github_wiki %} - - {% else %} - - - {% endif %} - -
-{% endif %} \ No newline at end of file +{% assign se = site.search_engine | default: "github" %} +{% assign file = "gw_tools/search_" | append: se | append: ".html" %} +{% include {{file}} %} \ No newline at end of file -- cgit