71 lines
2.2 KiB
HTML
71 lines
2.2 KiB
HTML
{{ define "main" }}
|
|
<h1>
|
|
{{ $hash := md5 .Title }}
|
|
{{ $r := printf "0x%s" (substr $hash 0 2) | int }}
|
|
{{ $g := printf "0x%s" (substr $hash 2 2) | int }}
|
|
{{ $b := printf "0x%s" (substr $hash 4 2) | int }}
|
|
{{ $rgba := printf "rgba(%d,%d,%d,0.2)" $r $g $b }}
|
|
<span
|
|
class="term-title"
|
|
style="background:rgba({{ $r }},{{ $g }},{{ $b }},0.4)">
|
|
{{ .Title }}
|
|
</span>
|
|
</h1>
|
|
{{ .Content }}
|
|
<section id="tools-list">
|
|
<table id="taxonomy-table">
|
|
<thead>
|
|
<tr>
|
|
<th>Tool</th>
|
|
<!-- <th>License</th> -->
|
|
<th>Description</th>
|
|
<!-- <th>Developers</th> -->
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{ range .Pages }}
|
|
<tr onclick="window.location='{{ .RelPermalink }}'" style="cursor:pointer;"></tr>
|
|
<td class="tool"><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></td>
|
|
<td class="description">{{ .Content | truncate 200 }}</td>
|
|
<!-- <td>
|
|
{{ $sep := "" }}
|
|
{{ range $key, $vals := .Params }}
|
|
{{ if (in (slice "applications") $key) }}
|
|
{{ $sep }}
|
|
{{ range $i, $val := $vals }}
|
|
{{ partial "term-link.html" (dict "name" $val "taxonomy" $key) }}
|
|
{{ end }}
|
|
{{ $sep = "; " }}
|
|
{{ end }}
|
|
{{ end }}
|
|
</td> -->
|
|
<!-- <td>
|
|
{{ $sep := "" }}
|
|
{{ range $key, $vals := .Params }}
|
|
{{ if (in (slice "developers") $key) }}
|
|
{{ $sep }}
|
|
{{ range $i, $val := $vals }}
|
|
{{ partial "term-link.html" (dict "name" $val "taxonomy" $key) }}
|
|
{{ end }}
|
|
{{ $sep = "; " }}
|
|
{{ end }}
|
|
{{ end }}
|
|
</td> -->
|
|
<!-- <td>
|
|
{{ $sep := "" }}
|
|
{{ range $key, $vals := .Params }}
|
|
{{ if (in (slice "licenses") $key) }}
|
|
{{ $sep }}
|
|
{{ range $i, $val := $vals }}
|
|
{{ partial "term-link.html" (dict "name" $val "taxonomy" $key) }}
|
|
{{ end }}
|
|
{{ $sep = "; " }}
|
|
{{ end }}
|
|
{{ end }}
|
|
</td> -->
|
|
</tr>
|
|
{{ end }}
|
|
</tbody>
|
|
</table>
|
|
{{ end }}
|