Merge pull request #49 from rawkode/bugfix/support-all-taxonomies

Don't hardcode to a single taxonomy
This commit is contained in:
Michael Romero 2017-04-05 00:51:02 -07:00 committed by GitHub
commit 1c26fe2526

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>