From b1dcf9479a9d40d4687d78557a7acb3825e1b983 Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Thu, 19 Feb 2015 11:20:39 +0100 Subject: [PATCH] Added Google Custom Search Engine. --- _layouts/default.html | 18 ++++++++++++------ javascripts/gcse.coffee | 10 ++++++++++ search.html | 17 +++++++++++++++++ 3 files changed, 39 insertions(+), 6 deletions(-) create mode 100644 javascripts/gcse.coffee create mode 100644 search.html diff --git a/_layouts/default.html b/_layouts/default.html index d738fc5..1c8b84a 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -14,19 +14,25 @@ {% if page.toc %} {% endif %} +
-

{{ site.name }}

-

{{ site.description }}

+
+

{{ site.name }}

+

{{ site.description }}

-
- - View on GitHub -
+
+ + View on GitHub +
+
+
+ +
diff --git a/javascripts/gcse.coffee b/javascripts/gcse.coffee new file mode 100644 index 0000000..cfd9d21 --- /dev/null +++ b/javascripts/gcse.coffee @@ -0,0 +1,10 @@ +--- +--- +cx = '005859900804634181508:3bt_l7jyk2e' +gcse = document.createElement 'script' +gcse.type = 'text/javascript' +gcse.async = true +gcse.src = '//www.google.com/cse/cse.js?cx=' + cx +s = document.getElementsByTagName('script')[0] +s.parentNode.insertBefore gcse, s + diff --git a/search.html b/search.html new file mode 100644 index 0000000..2ee666a --- /dev/null +++ b/search.html @@ -0,0 +1,17 @@ +--- +title: Search +--- + + +