diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-05 10:56:06 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-05 10:56:06 +0200 |
commit | 2a49db8b5c2946555e7fa3a26193814ee711fb71 (patch) | |
tree | 3ffade57adc7a72c15282d1228fdc6005aaa1a8c /search.html | |
parent | 1643801e434c2c9bb09353998856210a46056f3b (diff) |
add fallback (no client js) search
Diffstat (limited to 'search.html')
-rw-r--r-- | search.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/search.html b/search.html index 9001636..ed39150 100644 --- a/search.html +++ b/search.html @@ -5,12 +5,13 @@ id: search toc: false --- -<div class="searchBar"> - <input class="input" id="searchInput" placeholder="Search for posts..." spellcheck="false" autocomplete="off"> +<form class="searchBar" method="get" action="{{ site.nojs-search }}"> + <input type="text" class="input" id="searchInput" name="q" placeholder="Search for posts..." spellcheck="false" autocomplete="off"> + <input type="hidden" name="q" value="site:{{ site.domain }}"> <button class="button"> <div class="icon">{% include icon/search-round.svg %}</div> </button> -</div> +</form> <div class="searchResults"></div> |