hugo-tufte/layouts/_default/terms.html
Shawn O'Hare 82958f2609 v0.1.0
Theme should be useable, but there might be some minor stylistic tweaks
here and there.
2016-01-14 21:02:57 -08:00

64 lines
1.6 KiB
HTML

{{ 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="{{ $data.Plural }}/{{ $value.Name| urlize }}">
{{ $value.Name}}
</a>
</td>
<td>{{ $value.Count }}</td>
</tr>
{{ end }}
</tbody>
</table>
</section>
</div>
<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="{{ $data.Plural }}/{{ $value.Name| urlize }}">
{{ $value.Name}}
</a></td>
<td>{{ $value.Count }}</td>
</tr>
{{ end }}
</tbody>
</table>
</section>
</div>
</div>
{{ partial "footer.html" . }}
</article>
</div>
</body>
</html>