Commit 84993064 authored by Jamie Tanna's avatar Jamie Tanna

Show count for taxonomy entries on taxonomy pages

As part of, it's nicer for a reader to be able to see how
many other posts exist of that categories/tags exist.

Follow-up to
parent 96569dea
......@@ -3,8 +3,9 @@
<h1>{{ .Title }}</h1>
<div class="catalogue">
{{ $terms := index .Site.Taxonomies .Data.Plural }}
{{- range .Data.Pages -}}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
<li><a href="{{ .Permalink }}">{{ .Title }} ({{ len (index $terms .Data.Term) }})</a></li>
{{- end -}}
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