2022-06-09 15:44:55 +00:00
|
|
|
<p>
|
|
|
|
{{ .TotalResults }} results
|
|
|
|
</p>
|
|
|
|
<ol>
|
|
|
|
{{- range .Results }}
|
|
|
|
<li>
|
2022-06-09 00:14:39 +00:00
|
|
|
<h2>
|
|
|
|
<a href="{{ .URL }}">
|
2022-06-09 15:44:55 +00:00
|
|
|
{{ if .Title -}}
|
|
|
|
{{- .Title }}
|
|
|
|
{{ else -}}
|
|
|
|
{{- .URL }}
|
|
|
|
{{- end }}
|
2022-06-09 00:14:39 +00:00
|
|
|
</a>
|
|
|
|
</h2>
|
2022-06-09 15:44:55 +00:00
|
|
|
<p>{{ printf "%.200s" .Desc }}</p>
|
2022-06-09 00:14:39 +00:00
|
|
|
<p><q cite="{{ .URL }}">
|
2022-06-09 15:44:55 +00:00
|
|
|
{{ $isMatch := false }}
|
|
|
|
{{ range .Frag }}
|
|
|
|
{{ if $isMatch }}<strong>{{ end -}}
|
|
|
|
{{ printf . }}
|
|
|
|
{{- if $isMatch }}</strong>{{ end }}
|
|
|
|
{{ $isMatch = (not $isMatch) }}
|
|
|
|
{{ end }}
|
2022-06-09 00:14:39 +00:00
|
|
|
</q></p>
|
2022-06-09 15:44:55 +00:00
|
|
|
</li>
|
|
|
|
{{- end }}
|
|
|
|
</ol>
|