-{{- with $page := .Page }}
+{{- $page := .Page }}
{{- range $taxonomy, $terms := .Page.Site.Taxonomies }}
<h3><a href="{{ .Page.RelPermalink }}">{{ .Page.LinkTitle }}</a></h3>
<h4>$taxonomy: {{ $taxonomy }}</h4>
-{{- with index .Page.Site.Taxonomies $taxonomy }}
-<pre>{{ debug.Dump .Page }}</pre>
-{{- end }}
+{{- $taxonomyPage := index .Page.Site.Taxonomies $taxonomy }}
+<h4>$taxonomyPage.Page</h4>
+<pre>{{ debug.Dump $taxonomyPage.Page }}</pre>
+<h4>$page.GetTerms $taxonomy</h4>
+<pre>{{ debug.Dump ($page.GetTerms $taxonomy) }}</pre>
<h4>List</h4>
<ul>
{{- range $term, $pages := $terms }}
+ {{- $termPath := printf "%s/%s" $taxonomyPage.Page.Path $term }}
+ <li>{{ $termPath}}: {{ $taxonomyPage.Count $term }}</li>
{{- if in ($page.GetTerms $taxonomy) $term }}
<li><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> {{ .Count }}</li>
{{- end }}
{{- end }}
</ul>
{{- end }}
-{{- end }}