7e253ff937
Add UI to select preferred search engine when Google Programmable Search is enabled. The user's preference is saved using local storage. This also makes the search input field of type "search" for better UX (in particular on mobile). Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
18 lines
450 B
HTML
18 lines
450 B
HTML
{%- extends "!search.html" %}
|
|
|
|
{%- block scripts %}
|
|
{{ super.super() }}
|
|
<link rel="stylesheet" href="{{ pathto('_static/css/gcs.css', 1) }}" type="text/css" />
|
|
{%- endblock %}
|
|
|
|
{% block footer %}
|
|
{{ super.super() }}
|
|
{% endblock %}
|
|
|
|
{% block body %}
|
|
<h2>{{ _('Search Results') }}</h2>
|
|
<script async src="https://cse.google.com/cse.js?cx={{ google_searchengine_id }}">
|
|
</script>
|
|
<div class="gcse-searchresults-only"></div>
|
|
{% endblock %}
|