Added search function with DuckDuckGo.
This commit is contained in:
parent
a5f63128cf
commit
efce838267
1 changed files with 65 additions and 14 deletions
6
layouts/partials/search.html
Normal file
6
layouts/partials/search.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{{ $domain := .Site.BaseURL | replaceRE "^https?://(www\\.)?([^/]+)/?" "$2" }}
|
||||
<form class="search-form" method="get" action="https://duckduckgo.com/">
|
||||
<input type="search" name="q" class="search-text" placeholder="Search this site…" title="Enter the terms you wish to search for." size="{{ .Site.Params.searchSize | default "20" }}" maxlength="128">
|
||||
<input type="hidden" name="sites" value="{{ $domain }}">
|
||||
<input type="submit" value="DuckDuckGo Search" class="hidden">
|
||||
</form>
|
||||
Loading…
Reference in a new issue