forked from wayhome25/wayhome25.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.html
61 lines (53 loc) · 1.65 KB
/
search.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
layout: page
title: Search
page_title: Search
permalink: /search/
---
<div id="results">
<h1><!-- `key` listing for `value` --></h1>
<ul class="results">
<!-- results lists -->
</ul>
</div>
<div id="search-container-google">
<script>
(function() {
var cx = '015731003607597102937:cmvfrjrcoq0';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search></gcse:search>
</div>
<!-- Html Elements for Search -->
<!-- <div id="search-container">
<input type="text" id="search-input" placeholder="검색어를 입력하세요.">
<ul id="results-container"></ul>
</div> -->
<!-- tag list -->
<!-- <hr/>
<div class="tags-expo-list">
{% for tag in site.tags %}
<a href="https://wayhome25.github.io/blog/tags/#{{ tag[0] }}" class="post-tag">{{ tag[0] }}</a> -->
<!-- blog/tags/#python -->
<!-- {% endfor %}
</div> -->
<!-- Script pointing to jekyll-search.js -->
<script src="{{site.baseurl}}/dest/jekyll-search.js" type="text/javascript"></script>
<script type="text/javascript">
SimpleJekyllSearch({
searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('results-container'),
json: '{{ site.baseurl }}/search2.json',
searchResultTemplate: '<li><a href="{url}" title="{desc}">{title}</a></li>',
noResultsText: 'No results found',
limit: 10,
fuzzy: true,
exclude: ['Welcome']
})
</script>