-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.hbs
executable file
·35 lines (32 loc) · 1.16 KB
/
search.hbs
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
{{> head}}
{{> top}}
<main class="main">
<div class="page search">
<h1 class="page__title box__title">
{{ translate 'search.title' }}</h1>
</div>
<form action="{{@website.searchUrl}}" class="search__form">
<input
type="search"
name="{{@config.custom.searchParam}}"
placeholder="{{ translate 'search.placeholder' }}"
class="search__input" />
<button type="submit">{{ translate 'search.submit' }}</button>
</form>
<script>
(function () {
var cx = '{{@config.custom.searchId}}';
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:searchresults-only></gcse:searchresults-only>
</main>
{{> sidebar}}
{{> footer}}