mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-24 01:42:10 +00:00
Add native search to hidden service
This commit is contained in:
parent
7eda7a9b9d
commit
2bae1cb224
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,10 @@
|
|||
{{- $actionBase := "https:/seirdy.one/" -}}
|
||||
{{- if (in site.BaseURL ".onion") -}}
|
||||
{{- $actionBase = site.BaseURL -}}
|
||||
{{- end -}}
|
||||
<form
|
||||
itemprop="potentialAction" itemscope="" itemtype="https://schema.org/SearchAction"
|
||||
action="https://seirdy.one/search/" method="get" role="search">
|
||||
action="{{ $actionBase }}search/" 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="http://seirdy.one/search?q={q}" />
|
||||
|
|
Loading…
Reference in a new issue