hugo-tufte/layouts/_default/terms.html

65 lines
1.5 KiB
HTML
Raw Normal View History

2015-12-30 03:35:20 +01:00
{{ partial "header.html" . }}
<body>
<div id="layout" class="pure-g">
<article class="pure-u-1">
{{ partial "brand.html" . }}
{{ partial "content.header.html" . }}
{{ $data := .Data }}
<div class="pure-g">
<div class="pure-u-1 pure-u-sm-1-2">
<h2>By Frequency</h2>
<section>
<table class="pure-table pure-table-horizontal pure-table-striped">
<thead>
<tr>
<th>Term</th>
<th>Count</th>
</tr>
</thead>
</tbody>
{{ range $key, $value := .Data.Terms.ByCount }}
<tr>
<td>
<a href="{{ $value.Name| urlize }}">
{{ $value.Name}}
</a>
</td>
<td>{{ $value.Count }}</td>
</tr>
{{ end }}
</tbody>
</table>
</section>
</div>
2015-12-30 03:35:20 +01:00
<div class="pure-u-1 pure-u-sm-1-2">
<h2>Alphabetically</h2>
<section>
<table class="pure-table pure-table-horizontal pure-table-striped">
<thead>
<tr>
<th>Term</th>
<th>Count</th>
</tr>
</thead>
</tbody>
{{ range $key, $value := .Data.Terms.Alphabetical}}
<tr>
<td><a href="{{ $value.Name| urlize }}">
{{ $value.Name}}
</a></td>
<td>{{ $value.Count }}</td>
</tr>
{{ end }}
</tbody>
</table>
</section>
</div>
</div>
{{ partial "footer.html" . }}
</article>
2015-12-30 03:35:20 +01:00
</div>
</body>
</html>