Include dictionary links in results

This commit is contained in:
Ray Miller 2024-04-20 14:40:00 +01:00
parent db7395cebf
commit d6cff4f1ef

View file

@ -46,7 +46,11 @@ var results = template.Must(template.New("results").Parse(`
{{ end }} {{ end }}
<ul> <ul>
{{ range .Results }} {{ range .Results }}
<li>{{.}}</li> <li>{{.}}
<a href="https://dicoweb.gnu.org.ua/?q={{.}}&db=gcide&define=1" target="defn">GCIDE</a>
<a href="https://dicoweb.gnu.org.ua/?q={{.}}&db=WordNet&define=1" target="defn">WordNet</a>
<a href="https://dictionary.cambridge.org/dictionary/english/{{.}}" target="defn">Cambridge</a>
</li>
{{ end }} {{ end }}
</ul> </ul>
`)) `))