Minor UI tweak

This commit is contained in:
James Mills
2021-02-02 08:25:54 +10:00
parent 03236ffa1f
commit 0db2b08911

View File

@@ -1,9 +1,18 @@
{{define "content"}} {{define "content"}}
<div class="container">
<form action="/search" method="GET">
<input type="text" id="search" name="q" placeholder="{{ $.SearchPrompt }}">
<button id="go" type="submit">
<i class="icss-search"></i>
Go!
</button>
</form>
</div>
<article class="container"> <article class="container">
{{ with $.Results }} {{ with $.Results }}
<ol> <ol>
{{ range . }} {{ 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> <li><a href="{{ .URL }}">{{ .Title }}</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 }} {{ end }}
</ol> </ol>
<p>If your page appears here and you do not want it to, please contact <a href="/support">Support</a>.</p> <p>If your page appears here and you do not want it to, please contact <a href="/support">Support</a>.</p>