Commit ce069731 authored by Jamie Tanna's avatar Jamie Tanna

Show count for taxonomy entries in posts

As part of jvt.me#305, it's nicer for a reader to be able to see how
many other posts exist of that categories/tags exist.
parent 5da4ee00
......@@ -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