Commit 41fc6ced authored by Jamie Tanna's avatar Jamie Tanna

Merge branch 'feature/count-taxonomy' into 'fork'

Show count for taxonomy entries in posts

See merge request !43
parents 5da4ee00 ce069731
......@@ -39,15 +39,17 @@
<p>Categories:</p>
<ul>
{{ $categories := index .Site.Taxonomies "categories" }}
{{ range .Params.Categories }}
<li> <a href="/posts/categories/{{ . }}">{{ . }}</a></li>
<li> <a href="/posts/categories/{{ . }}">{{ . }} ({{ len (index $categories .) }})</a></li>
{{ end }}
</ul>
<p>Tags:</p>
<ul>
{{ $tags := index .Site.Taxonomies "tags" }}
{{ range .Params.Tags }}
<li> <a href="/posts/tags/{{ . }}">{{ . }}</a></li>
<li> <a href="/posts/tags/{{ . }}">{{ . }} ({{ len (index $tags .) }})</a></li>
{{ end }}
</ul>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment