1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-14 01:32:11 +00:00
seirdy.one/layouts/partials/search.html

18 lines
878 B
HTML
Raw Normal View History

2022-06-10 22:00:35 +00:00
{{- $action := "https://seirdy.one/search/" -}}
{{- if or (in site.BaseURL ".onion") -}}
{{- $action = "http://wgq3bd2kqoybhstp77i3wrzbfnsyd27wt34psaja4grqiezqircorkyd.onion/search/" -}}
2022-06-10 03:47:21 +00:00
{{- end -}}
<form
itemprop="potentialAction" itemscope="" itemtype="https://schema.org/SearchAction"
action="{{ $action }}" method="get" role="search">
<label for="search" itemscope="" itemprop="target" itemtype="https://schema.org/EntryPoint">
Search this site (powered by the <a rel="nofollow" href="https://searchmysite.net/">Search My Site</a> API):
<meta itemprop="urlTemplate" content="{{ $action }}?q={q}" />
2022-06-08 06:36:05 +00:00
</label>
<div><!--We need the extra divs to serve as pseudo-table-cells.-->
2022-07-11 22:22:52 +00:00
<input itemprop="query-input" id="search" type="search" name="q"
2022-07-16 05:45:00 +00:00
required="" spellcheck="true" autocomplete="on" />
<div><input type="submit" value="search" /></div>
</div>
</form>