Browse code

use qwant instead of google

devnewton authored on 21/03/2017 00:14:25
Showing 2 changed files
... ...
@@ -25,7 +25,7 @@
25 25
         <a id="nav-search-btn" class="nav-icon" title="<%= __('search') %>"></a>
26 26
       </nav>
27 27
       <div id="search-form-wrap">
28
-        <%- search_form({button: '&#xF002;'}) %>
28
+        <%- partial('search') %>
29 29
       </div>
30 30
     </div>
31 31
   </div>
32 32
new file mode 100644
... ...
@@ -0,0 +1,5 @@
1
+<form action="//lite.qwant.com/" method="get" accept-charset="UTF-8" class="search-form">
2
+    <input name="q" results="0" class="search-form-input" placeholder="<%= __('search') %>" type="search">
3
+    <button type="submit" class="search-form-submit">&#xF002;</button>
4
+    <input name="q" value=" site:<%- config.url.replace(/^https?:\/\//, '') %>" type="hidden">
5
+</form>
0 6
\ No newline at end of file