UI/UX changes: PicoCSS -> mirageCSS, rice-box.go removed and placed on .gitignore (since it is generated anyway), update templates. Signed-off-by: Aoi K <koizumi.aoi@kyoko-project.wer.ee> Co-authored-by: Aoi K <koizumi.aoi@kyoko-project.wer.ee> Reviewed-on: https://git.mills.io/prologic/spyda/pulls/1 Co-authored-by: Aoi Koizumi (古泉 あおい) <novaburst@noreply@mills.io> Co-committed-by: Aoi Koizumi (古泉 あおい) <novaburst@noreply@mills.io>
24 lines
986 B
HTML
24 lines
986 B
HTML
{{define "content"}}
|
|
<div class="container">
|
|
<form action="/search" method="GET" style="text-align: center; width: 100%;">
|
|
<input type="text" id="search" name="q" placeholder="{{ $.SearchPrompt }}" value="{{ $.SearchQuery }}" required="required" style="width: 100%;" autofocus />
|
|
<input type="submit" id="go" value="Go!" />
|
|
</form>
|
|
</div>
|
|
{{ template "pager" (dict "Pager" $.Pager "SearchQuery" $.SearchQuery "SearchTook" $.SearchTook) }}
|
|
<div class="container">
|
|
{{ with $.Results }}
|
|
{{ range . }}
|
|
<article>
|
|
<h3><a href="{{ .URL }}">{{ .Title }}</a></h3>
|
|
<p{{ if .Summary }}>{{ .Summary }}{{ else }} class="placeholder">No summary available{{ end }}</p>
|
|
<footer><a href="{{ .URL }}">{{ .URL }}</a> {{ .Length }} <a href="/cache/{{ .ID }}">View cached</a></footer>
|
|
</article>
|
|
{{ else }}
|
|
<p>No search results</p>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
{{ template "pager" (dict "Pager" $.Pager "SearchQuery" $.SearchQuery "SearchTook" $.SearchTook) }}
|
|
{{end}}
|