Implement route handling

This commit is contained in:
Elnu 2023-07-21 12:17:11 -07:00
parent fb045b9276
commit 36710478f2
3 changed files with 47 additions and 13 deletions

View file

@ -1,3 +1,4 @@
{{- define "search" -}}
<p><i>{{ if eq .Count 0 }}No results{{ else }}{{ .Count }} result{{ if ne .Count 1}}s{{ end }}{{ end }}.</i></p>
{{- range .ExactResults -}}
{{- template "word" . -}}
@ -5,4 +6,6 @@
<hr>
{{ range .OtherResults -}}
{{ template "word" . }}
{{- end -}}
{{- end -}}
{{- end -}}
{{- template "search" . -}}