summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-12-13 20:04:03 -0300
committerdequis <dx@dxzone.com.ar>2015-12-13 21:52:07 -0300
commite7efb0fe82f38c9bb355adcd74b77ae08d686387 (patch)
tree1bd2272ed713d11138b58dcb435c72b7f024ba4b
parent6adfe65e38c736e7acfaca46c9946c7fb42978c0 (diff)
downloadirssi.github.io-e7efb0fe82f38c9bb355adcd74b77ae08d686387.zip
Remove search js from welcome, add it to /gsearch/
-rw-r--r--_layouts/welcome.html17
-rw-r--r--gsearch/index.html17
2 files changed, 17 insertions, 17 deletions
diff --git a/_layouts/welcome.html b/_layouts/welcome.html
index 0e0717d..824d585 100644
--- a/_layouts/welcome.html
+++ b/_layouts/welcome.html
@@ -66,23 +66,8 @@
</div>
<div class="row">
<div class="hidden-xs col-sm-12 col-md-3">
- <div class="row"><div class="col-md-12 col-sm-8">
<h3>What's new</h3>
- {% include sb_whatsnew.html %}</div><div class="col-md-12 col-sm-4">
- <h4 style='margin-bottom:0'>Search this site</h4>
- <div><script>
- (function() {
- var cx = '013138746835038969445:mlfkigveyj4';
- var gcse = document.createElement('script');
- gcse.type = 'text/javascript';
- gcse.async = true;
- gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
- '//cse.google.com/cse.js?cx=' + cx;
- var s = document.getElementsByTagName('script')[0];
- s.parentNode.insertBefore(gcse, s);
- })();
-</script>
- <gcse:searchbox-only></gcse:searchbox-only></div></div></div>
+ {% include sb_whatsnew.html %}
</div>
<div class="col-sm-4 col-md-3">
<h3>Themes</h3>
diff --git a/gsearch/index.html b/gsearch/index.html
index 69b9bc1..0357cd3 100644
--- a/gsearch/index.html
+++ b/gsearch/index.html
@@ -4,4 +4,19 @@ title: Search results
permalink: /gsearch/
---
<div class="row">
-<gcse:searchresults-only linkTarget="_self"></gcse:searchresults-only></div>
+
+<script>
+ (function() {
+ var cx = '013138746835038969445:mlfkigveyj4';
+ var gcse = document.createElement('script');
+ gcse.type = 'text/javascript';
+ gcse.async = true;
+ gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
+ '//cse.google.com/cse.js?cx=' + cx;
+ var s = document.getElementsByTagName('script')[0];
+ s.parentNode.insertBefore(gcse, s);
+ })();
+</script>
+<gcse:search linkTarget="_self"></gcse:search>
+
+</div>