generated from ElnuDev/go-project
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
468 B
11 lines
468 B
2 years ago
|
{{- define "search" -}}
|
||
|
<p><i>{{ if .Truncated }}Truncated results, showing first {{ .Count }}{{ else }}{{ if eq .Count 0 }}No results{{ else }}{{ .Count }} result{{ if ne .Count 1}}s{{ end }}{{ end }}{{ end }}.</i></p>
|
||
|
{{ range .ExactResults -}}
|
||
|
{{- template "entry" . -}}
|
||
|
{{- end }}
|
||
|
{{ if and (ne (len .ExactResults) 0) (ne (len .OtherResults) 0) }}<hr>{{ end }}
|
||
|
{{ range .OtherResults -}}
|
||
|
{{ template "entry" . }}
|
||
|
{{- end -}}
|
||
|
{{- end -}}
|
||
|
{{- template "search" . -}}
|