Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Brink back the search feature

The search layout has been removed in 755f2e3 by mistake. We can't
simply bring back it since the Google web search API is deprecated.
Therefore, the search feature now uses a Google custom search engine.

Fixes #264.
  • Loading branch information...
commit 8069e47c435e021c137c6d23b3bf40183d8906ea 1 parent 478fa3c
@robin850 robin850 authored
Showing with 20 additions and 0 deletions.
  1. +20 −0 _layouts/search.html
View
20 _layouts/search.html
@@ -0,0 +1,20 @@
+---
+layout: base
+---
+
+{{ content }}
+
+<script>
+ (function() {
+ var cx = '011663737245720498799:pbicw6zy8ya';
+ var gcse = document.createElement('script');
+ gcse.type = 'text/javascript';
+ gcse.async = true;
+ gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
+ '//www.google.com/cse/cse.js?cx=' + cx;
+ var s = document.getElementsByTagName('script')[0];
+ s.parentNode.insertBefore(gcse, s);
+ })();
+</script>
+
+<gcse:searchresults-only></gcse:searchresults-only>
Please sign in to comment.
Something went wrong with that request. Please try again.