Initial Codebase (untested)
This commit is contained in:
29
internal/templates/search.html
Normal file
29
internal/templates/search.html
Normal file
@@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>veri</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<a href="/"><h1>veri</h1></a>
|
||||
</header>
|
||||
<main>
|
||||
<form action="/search" method="get">
|
||||
<input type="text" id="search" name="q"><br><br>
|
||||
<input type="submit" value="Search">
|
||||
</form>
|
||||
<p class="bold">These results are not ranked, they are just in alphabetical order of URL (this will change)</p>
|
||||
<ol>
|
||||
{{ if not . }}<p>No search results</p>{{ end }}
|
||||
{{ range . }}
|
||||
<li><a href="{{ .URL }}"><h3>{{ .Title }}</h3></a><p{{ if .Summary }}>{{ .Summary }}{{ else }} class="placeholder">No summary available{{ end }}</p><p class="small"><a href="{{ .URL }}">{{ .URL }}</a> {{ .Length }} <a href="/cache?id={{ .ID }}">View cached</a></p>
|
||||
{{ end }}
|
||||
</ol>
|
||||
<p>If your page appears here and you do not want it to, please contact <a href="mailto:~ols/indexing@lists.sr.ht">~ols/indexing@lists.sr.ht</a>. Contact the same email if you want your page considered for indexing. Be aware this is a public mailing list.</p>
|
||||
<footer>
|
||||
<p><a href="https://sr.ht/~ols/veri/">about</a></p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user