mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-24 05:02:10 +00:00
30 lines
525 B
HTML
30 lines
525 B
HTML
<p>
|
|
{{ .TotalResults }} results
|
|
</p>
|
|
<ol>
|
|
{{- range .Results }}
|
|
<li>
|
|
<h2>
|
|
<a href="{{ .URL }}">
|
|
{{ if .Title -}}
|
|
{{- .Title }}
|
|
{{ else -}}
|
|
{{- .URL }}
|
|
{{- end }}
|
|
</a>
|
|
</h2>
|
|
<p>{{ printf "%.200s" .Desc }}</p>
|
|
<p>
|
|
<q cite="{{ .URL }}">
|
|
{{- $isMatch := false -}}
|
|
{{- range .Frag -}}
|
|
{{- if $isMatch }}<strong>{{ end -}}
|
|
{{- printf . -}}
|
|
{{- if $isMatch }}</strong>{{ end -}}
|
|
{{- $isMatch = (not $isMatch) -}}
|
|
{{- end -}}
|
|
</q>
|
|
</p>
|
|
</li>
|
|
{{- end }}
|
|
</ol>
|