-{{- /*
-For a given taxonomy, renders a list of terms assigned to the page.
-
-@context {page} page The current page.
-@context {string} taxonomy The taxonomy.
-
-@example: {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
-*/}}
-
-{{- $page := .page }}
-{{- $taxonomy := .taxonomy }}
-
-{{- with $page.GetTerms $taxonomy }}
- {{- $label := (index . 0).Parent.LinkTitle }}
- <div>
- <div>{{ $label }}:</div>
- <ul>
- {{- range . }}
- <li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
- {{- end }}
- </ul>
- </div>
+{{- with .Page.Site.Taxonomies }}
+{{- range $taxonomy, $terms := . }}
+<h3>$taxonomy</h3>
+<pre>{{ debug.Dump $taxonomy }}</pre>
+<h3>$terms</h3>
+<pre>{{ debug.Dump $terms }}</pre>
+{{- end }}
{{- end }}
- <h3>.Site</h3>
- <pre>{{ debug.Dump .Site }}</pre>
- <h3>.</h3>
- <pre>{{ debug.Dump . }}</pre>
- <h3>.page</h3>
- <pre>{{ debug.Dump .page }}</pre>
- <h3>.Page.Page</h3>
- <pre>{{ debug.Dump .Page.Page }}</pre>
- <h3>.tags</h3>
- <pre>{{ debug.Dump .tags }}</pre>
- <h3>$taxonomy</h3>
- <pre>{{ debug.Dump $taxonomy }}</pre>
- {{- $taxonomyObject := .page.Site.Taxonomies.tags }}
- <pre>{{ debug.Dump $taxonomyObject }}</pre>
- {{- $type := $taxonomyObject.Type }}
- <pre>{{ debug.Dump $type }}</pre>
- <ul class="terms-tags">
- {{- range $key, $value := $taxonomyObject.Terms.Alphabetical }}
- {{- $name := .Name }}
- {{- $count := .Count }}
- {{- with site.GetPage (printf "/%s/%s" $type $name) }}
- <li>
- <a href="{{ .Permalink }}">{{ .Name }} <sup><strong><sup>{{ $count }}</sup></strong></sup> </a>
- </li>
- {{- end }}
- {{- end }}
- </ul>
{{- define "custom_css" }}
<style>