Don't hardcode to a single taxonomy

This commit is contained in:
David McKay 2017-04-04 17:37:39 +01:00
parent 0c1692e722
commit 152f673f13
No known key found for this signature in database
GPG Key ID: AD8BE9B9FB5521D5

View File

@ -8,11 +8,13 @@
{{ partial "nav.html" . }}
{{ partial "header.html" . }}
{{ $data := .Data }}
<div class="container" role="main">
<article class="post-preview">
<div class="list-group col-lg-4 col-lg-offset-4 col-md-6 col-md-offset-3">
{{ range $key, $value := .Data.Terms.ByCount }}
<a href="/tags/{{ $value.Name | urlize }}" class="list-group-item">
<a href="/{{ $data.Plural }}/{{ $value.Name | urlize }}" class="list-group-item">
{{ $value.Name }}<span class="badge">{{ $value.Count }}</span></a>
{{ end }}
</div>
@ -22,4 +24,4 @@
{{ partial "footer.html" . }}
</body>
</html>
</html>