Add DuckDuckGo search bar

This commit is contained in:
Gus 2022-04-28 13:20:25 +00:00
parent 8056927e39
commit 35a351c7d3
2 changed files with 4 additions and 3 deletions

View File

@ -24,7 +24,7 @@
{% elif this.term %}
<h1 class="display-4 no-border font-weight-light pt-5 pb-4">{{ this.term }}</h1>
{% endif %}
<!-- {% include 'search.html' %} -->
{% include 'search.html' %}
</div>
</div>
<div class="container-fluid">

View File

@ -1,8 +1,9 @@
<div class="row">
<form class="form-inline form-wide justify-content-md-center" id="searchForm" action="https://search.onionlab.eu/support-staging/{{ this.alt }}" method="GET">
<form class="form-inline form-wide justify-content-md-center" id="searchForm" action="https://duckduckgo.com/" method="GET">
<div class="col-md-4 col-sm-12">
<div class="col-12 input-group p-0">
<input id="q" class="form-control form-wide rounded-left border-0" type="text" name="q" placeholder="{{ _('Search') }} .." aria-label="{{ _('Search') }}">
<input id="q" class="form-control form-wide rounded-left border-0" type="text" name="q" placeholder="{{ _('Search using DuckDuckGo') }} ..." aria-label="{{ _('Search') }}">
<input type="hidden" name="sites" value="support.torproject.org/{{ this.alt }}">
<span class="input-group-btn">
<button class="btn btn-light" type="submit"><span class="oi oi-magnifying-glass text-secondary"></span></button>
</span>