summaryrefslogtreecommitdiff
path: root/_includes/gw_tools/search_google.html
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2018-12-17 16:16:43 +0100
committerYehonal <yehonal.azeroth@gmail.com>2018-12-17 21:00:26 +0100
commit4feaace4929a07cc34c4bcd6c57334be2d95ec31 (patch)
tree8b2b272a40a9c002d8d0c18831fd95bd03a246e3 /_includes/gw_tools/search_google.html
parent1ffe35e8bed26b833bf873f6062a548aa26e2598 (diff)
downloadwiki-4feaace4929a07cc34c4bcd6c57334be2d95ec31.tar.gz
wiki-4feaace4929a07cc34c4bcd6c57334be2d95ec31.tar.bz2
wiki-4feaace4929a07cc34c4bcd6c57334be2d95ec31.zip
Implemented js search and SEO optimizations
Diffstat (limited to '_includes/gw_tools/search_google.html')
-rw-r--r--_includes/gw_tools/search_google.html12
1 files changed, 12 insertions, 0 deletions
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 @@
+<script>
+ (function () {
+ var cx = "{{site.google_cse_token}}";
+ var gcse = document.createElement('script');
+ gcse.type = 'text/javascript';
+ gcse.async = true;
+ gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
+ var s = document.getElementsByTagName('script')[0];
+ s.parentNode.insertBefore(gcse, s);
+ })();
+</script>
+<gcse:search></gcse:search> \ No newline at end of file