Merge pull request #49 from rawkode/bugfix/support-all-taxonomies
Don't hardcode to a single taxonomy
This commit is contained in:
commit
1c26fe2526
@ -8,11 +8,13 @@
|
|||||||
{{ partial "nav.html" . }}
|
{{ partial "nav.html" . }}
|
||||||
{{ partial "header.html" . }}
|
{{ partial "header.html" . }}
|
||||||
|
|
||||||
|
{{ $data := .Data }}
|
||||||
|
|
||||||
<div class="container" role="main">
|
<div class="container" role="main">
|
||||||
<article class="post-preview">
|
<article class="post-preview">
|
||||||
<div class="list-group col-lg-4 col-lg-offset-4 col-md-6 col-md-offset-3">
|
<div class="list-group col-lg-4 col-lg-offset-4 col-md-6 col-md-offset-3">
|
||||||
{{ range $key, $value := .Data.Terms.ByCount }}
|
{{ 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>
|
{{ $value.Name }}<span class="badge">{{ $value.Count }}</span></a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
@ -22,4 +24,4 @@
|
|||||||
{{ partial "footer.html" . }}
|
{{ partial "footer.html" . }}
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user