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