From 054d2b3bf7eb4c5a5401565e86031f22ea754062 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 17 May 2024 13:31:03 +0200 Subject: feat: improve accessibility and browser behaviour --- frontend/templates/blocks/options.gotmpl | 2 +- frontend/templates/blocks/results.gotmpl | 8 ++++---- frontend/templates/blocks/search.gotmpl | 16 +++++++++++++--- 3 files changed, 18 insertions(+), 8 deletions(-) (limited to 'frontend/templates') diff --git a/frontend/templates/blocks/options.gotmpl b/frontend/templates/blocks/options.gotmpl index 806ca2f..de31696 100644 --- a/frontend/templates/blocks/options.gotmpl +++ b/frontend/templates/blocks/options.gotmpl @@ -3,7 +3,7 @@ {{- with .Data }}
- {{ .Name }} +

{{ .Name }}

{{ markdown .Description }}
diff --git a/frontend/templates/blocks/results.gotmpl b/frontend/templates/blocks/results.gotmpl index 95c89ca..c375156 100644 --- a/frontend/templates/blocks/results.gotmpl +++ b/frontend/templates/blocks/results.gotmpl @@ -1,10 +1,10 @@ {{- define "results" }} {{- with .Results }} {{- if gt .Total 0 }} -
+
{{ block "hits" .Hits }} {{ end }} -
+
- {{ .Total }} results + {{ .Total }} results
{{- else }} - Nothing found + Nothing found {{- end }} {{- end }} {{- end }} diff --git a/frontend/templates/blocks/search.gotmpl b/frontend/templates/blocks/search.gotmpl index 6f47df3..1be001a 100644 --- a/frontend/templates/blocks/search.gotmpl +++ b/frontend/templates/blocks/search.gotmpl @@ -1,8 +1,18 @@ {{- define "main" }} - -- cgit 1.4.1