aboutsummaryrefslogtreecommitdiffstats
path: root/new-bootstrap2/templates/search_sidebar.html
diff options
context:
space:
mode:
authorPeter Fraenkel <pnf@podsnap.com>2014-08-21 12:53:41 -0400
committerPeter Fraenkel <pnf@podsnap.com>2014-08-21 12:53:41 -0400
commitcfa5f40283668540cda45794200809640f251acd (patch)
treecf2bd8ffbea3ed4c01b5690ffd8ae2702976b583 /new-bootstrap2/templates/search_sidebar.html
parent1cd742a84a81f135234be021cf4fe7b8ff2c13ff (diff)
parenta928687830876af8c919606bae47195af65bc82d (diff)
downloadpelican-themes-cfa5f40283668540cda45794200809640f251acd.tar.gz
Merge remote-tracking branch 'upstream/master'
Keep the latex and tag-specific feeds in bootstrap3 Conflicts: pelican-bootstrap3/templates/base.html
Diffstat (limited to 'new-bootstrap2/templates/search_sidebar.html')
-rw-r--r--new-bootstrap2/templates/search_sidebar.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/new-bootstrap2/templates/search_sidebar.html b/new-bootstrap2/templates/search_sidebar.html
new file mode 100644
index 0000000..24fdaad
--- /dev/null
+++ b/new-bootstrap2/templates/search_sidebar.html
@@ -0,0 +1,15 @@
+{% if GOOGLE_CUSTOM_SEARCH_SIDEBAR %}
+<li class="nav-header"><h4><i class="icon-search"></i>Google Search</h4></li>
+<div id="cse" style="width: 100%;">Loading</div>
+<script src="http://www.google.com/jsapi" type="text/javascript"></script>
+<script type="text/javascript">
+ google.load('search', '1');
+ google.setOnLoadCallback(function() {
+ var customSearchOptions = {}; var customSearchControl = new google.search.CustomSearchControl(
+ '{{GOOGLE_CUSTOM_SEARCH_SIDEBAR}}', customSearchOptions);
+ customSearchControl.setResultSetSize(google.search.Search.SMALL_RESULTSET);
+ customSearchControl.draw('cse');
+ }, true);
+</script>
+<link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
+{% endif %}