Skip to content

Commit 26241c1

Browse files
committed
adding search, and updating static files
1 parent 5dc6deb commit 26241c1

3 files changed

Lines changed: 37 additions & 4 deletions

File tree

_includes/topnav.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
{% if site.feedback_disable == null or site.feedback_disable == false %}
4848
{% include feedback.html %}
4949
{% endif %}
50-
<!--comment out this block if you want to hide search-->
50+
<li><a href="{{ site.baseurl }}/search"><i class="fa fa-search"></i></li>
51+
<!-- jekyll search hidden in favor of google
5152
<li>
52-
<!--start search-->
5353
<div id="search-demo-container">
5454
<input type="text" id="search-input" placeholder="{{site.data.strings.search_placeholder_text}}">
5555
<ul id="results-container"></ul>
@@ -66,7 +66,7 @@
6666
fuzzy: true,
6767
})
6868
</script>
69-
<!--end search-->
69+
end search-->
7070
</li>
7171
</ul>
7272
</div>

circle_urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
with open(html_file,'r') as filey:
2020
content = filey.read()
2121
for search_name in search_names:
22-
content = content.replace('/%s"' %(search_name),'/%s.html"' %(search_name))
22+
content = content.replace('%s"' %(search_name),'%s.html"' %(search_name))
2323
with open(html_file,'w') as filey:
2424
filey.write(content)

pages/info/search.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: Search Singularity
3+
sidebar: main_sidebar
4+
permalink: search
5+
toc: false
6+
---
7+
8+
<style>
9+
.cse .gsc-search-button input.gsc-search-button-v2,
10+
input.gsc-search-button-v2 {
11+
height: 26px !important;
12+
margin-top: 0 !important;
13+
min-width: 13px !important;
14+
padding: 5px 26px !important;
15+
width: 68px !important;
16+
}
17+
</style>
18+
19+
<script>
20+
(function() {
21+
var cx = '010503388974132107851:rvx0hek_ybc';
22+
var gcse = document.createElement('script');
23+
gcse.type = 'text/javascript';
24+
gcse.async = true;
25+
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
26+
var s = document.getElementsByTagName('script')[0];
27+
s.parentNode.insertBefore(gcse, s);
28+
})();
29+
</script>
30+
31+
<gcse:search></gcse:search>
32+
33+
{% include links.html %}

0 commit comments

Comments
 (0)