Add terms template back

This commit is contained in:
Zhang Liang 2018-04-25 17:33:00 +08:00
parent 3e7ccabe6d
commit 3328d5c368

View File

@ -0,0 +1,16 @@
{{ partial "header.html" . }}
<h1>{{ .Title }}</h1>
<ul class="terms">
{{ range $key, $value := .Data.Terms }}
<li>
<a href="{{ (print "/" $.Data.Plural "/" $key | urlize) | relURL }}">
{{ $key }}
</a>
({{ len $value }})
</li>
{{ end }}
</ul>
{{ partial "footer.html" . }}