Search/templates/results.html
2024-03-27 21:30:19 +01:00

38 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ .Title }}</title>
<link rel="stylesheet" type="text/css" href="/static/style.css">
</head>
<body>
<form action="/search" class="results-search-container" method="post" autocomplete="off">
<h1 class="logomobile"><a class="no-decoration" href="./">Tails<span class="X">Go</span></a></h1>
<input type="text" name="q" value="{{ .Query }}" />
<input type="submit" class="hide" />
<div class="sub-search-button-wrapper">
<button name="t"><img src="/static/searchicon.png" alt="text result" />General</button>
</div>
</form>
<p class="fetched">{{ .Fetched }}</p>
{{ if ne .KnoRdesc "" }}
<p class="snip">{{ .KnoRdesc }} <a target="_blank" href="{{ .RdescLink }}">{{ .RdescLink }}</a></p>
{{ end }}
{{ if ne .Snippet "" }}
<p class="snipp">{{ .Snippet }} <a target="_blank" href="{{ index .Results 0 0 }}">{{ index .Results 0 0 }}</a></p>
{{ end }}
{{ if .Results }}
{{ range .Results }}
<div class="results">
<a href="{{ . }}">{{ . }}<h3>{{ . }}</h3></a>
<p>{{ . }}</p>
</div>
{{ end }}
{{ end }}
</body>
</html>