all repos — honk @ masto

my fork of honk

views/onts.html (view raw)

 1{{ template "header.html" . }}
 2<main>
 3<div class="info">
 4<p>ontologies of interest
 5<p>{{ range .Letters }}<a href="#{{.}}">{{.}}</a> {{ end }}
 6{{ $firstrune := .FirstRune }}
 7<ul>
 8<li><p>
 9{{ range .Pops }}
10<span class="wsnowrap"><a href="/o/{{ .Name }}">#{{ .Name }}</a> ({{ .Count }})</span>
11{{ end }}
12{{ $letter := 0 }}
13{{ range .Onts }}
14{{ if not (eq $letter (call $firstrune .Name)) }}
15{{ $letter = (call $firstrune .Name) }}
16<li><p><a name="{{ printf "%c" $letter}}"></a>
17{{ end }}
18<span class="wsnowrap"><a href="/o/{{ .Name }}">#{{ .Name }}</a> ({{ .Count }})</span>
19{{ end }}
20</ul>
21</div>
22</main>