-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.hbs
50 lines (50 loc) · 1.91 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{{> head}}
<body>
{{{@bodyCustomCode}}}
<div class="container">
<header class="js-top">
<a class="logo" href="{{@website.url}}">
{{#if @website.logo}}
<img src="{{@website.logo}}" alt="{{@website.name}}">
{{else}}
{{@website.name}}
{{/if}}
</a>
<div class="top">
{{#if menus.mainMenu}}
{{> menu menus.mainMenu}}
{{/if}}
{{> search}}
</div>
</header>
<main>
<section class="hero hero--normal">
<header>
<h1 class="hero__title">
{{ translate 'search.title' }}
</h1>
<form action="{{@website.searchUrl}}" class="hero__desc search-page">
<input
type="search"
name="{{@config.custom.searchParam}}"
placeholder="{{ translate 'search.placeholder' }}"
class="search-page__input"/>
</form>
</header>
</section>
<div class="category">
<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>
</div>
</main>
{{> footer}}