mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-25 18:22:09 +00:00
916b089a4f
- Formatting fix for indieweb icon - Support searching directly on hidden service
16 lines
839 B
HTML
16 lines
839 B
HTML
{{- $action := "https:/seirdy.one/search/" -}}
|
|
{{- if or (in site.BaseURL ".onion") -}}
|
|
{{- $action = "http://wgq3bd2kqoybhstp77i3wrzbfnsyd27wt34psaja4grqiezqircorkyd.onion/search/" -}}
|
|
{{- 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}" />
|
|
</label>
|
|
<div><!--We need the extra divs to serve as pseudo-table-cells.-->
|
|
<input itemprop="query-input" id="search" type="search" required="" name="q" />
|
|
<div><input type="submit" value="search" /></div>
|
|
</div>
|
|
</form>
|