SkunkyArt/html/search.htm

29 lines
1.1 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html>
<head>
2024-07-05 21:46:25 +00:00
<title>SkunkyArt | Search "{{.QueryRaw}}"</title>
2024-07-13 18:32:04 +00:00
<link rel="stylesheet" href="{{.BasePath}}stylesheet">
</head>
<main>
<header>
2024-07-05 21:46:25 +00:00
<h1><a href="{{.BasePath}}">HOME</a> | <a href="{{.BasePath}}dd">DD</a></h1>
<form method="get" action="search">
<input type="text" name="q" placeholder="Search for ..." autocomplete="off" autocapitalize="none" spellcheck="false">
<select name="type">
<option value="all">All</option>
<option value="tag">Tag</option>
2024-07-09 09:54:15 +00:00
<option value="r">Groups</option>
</select>
<button type="submit">Search!</button>
</form>
</header>
{{if ne .Templates.Search.List ""}}
{{if ne .Templates.Search.Content.Total 0}}
<h1>Results by request '{{.QueryRaw}}': {{.Templates.Search.Content.Total}}</h1>
{{end}}
{{.Templates.Search.List}}
{{else}}
<p>No results :(</p>
{{end}}
</main>
</html>