readd searchbox
Anirudh Oppiliappan x@icyphox.sh
Thu, 21 Sep 2023 09:23:24 +0300
2 files changed,
9 insertions(+),
0 deletions(-)
M
views/honkpage.html
→
views/honkpage.html
@@ -7,6 +7,11 @@ <p>{{ .Name }} <span style="margin-left:1em;"><a href="/u/{{ .Name }}/rss">rss</a></span>
<p>{{ .WhatAbout }} {{ end }} <p>{{ .ServerMessage }} + +<form action="/q" method="GET"> +<input type="text" name="q" autocomplete=off size=10 id="searchbox" placeholder="search"> +</form> + </div> {{ if .HonkCSRF }} {{ template "honkform.html" . }}
M
views/style.css
→
views/style.css
@@ -558,3 +558,7 @@
.fontmonospace { font-family: monospace; } + +#searchbox { + width: 95%; +}