diff --git a/content/en/templates/taxonomy-templates.md b/content/en/templates/taxonomy-templates.md
index 284500e00..d15a6f639 100644
--- a/content/en/templates/taxonomy-templates.md
+++ b/content/en/templates/taxonomy-templates.md
@@ -126,9 +126,13 @@ Taxonomies can be ordered by either alphabetical key or by the number of content
```
- {{ $data := .Data }}
+ {{ $type := .Type }}
{{ range $key, $value := .Data.Terms.Alphabetical }}
- - {{ $value.Name }} {{ $value.Count }}
+ {{ $name := .Name }}
+ {{ $count := .Count }}
+ {{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
+ - {{ $name }} {{ $count }}
+ {{ end }}
{{ end }}
```
@@ -137,9 +141,13 @@ Taxonomies can be ordered by either alphabetical key or by the number of content
```
- {{ $data := .Data }}
+ {{ $type := .Type }}
{{ range $key, $value := .Data.Terms.ByCount }}
- - {{ $value.Name }} {{ $value.Count }}
+ {{ $name := .Name }}
+ {{ $count := .Count }}
+ {{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
+ - {{ $name }} {{ $count }}
+ {{ end }}
{{ end }}
```
@@ -148,9 +156,13 @@ Taxonomies can be ordered by either alphabetical key or by the number of content
```
- {{ $data := .Data }}
+ {{ $type := .Type }}
{{ range $key, $value := .Data.Terms.ByCount.Reverse }}
- - {{ $value.Name }} {{ $value.Count }}
+ {{ $name := .Name }}
+ {{ $count := .Count }}
+ {{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
+ - {{ $name }} {{ $count }}
+ {{ end }}
{{ end }}
```
@@ -224,7 +236,10 @@ Because we are leveraging the front matter system to define taxonomies for conte
```
```
@@ -238,7 +253,12 @@ To list such taxonomies, use the following:
```
{{ if .Params.directors }}
Director{{ if gt (len .Params.directors) 1 }}s{{ end }}:
- {{ range $index, $director := .Params.directors }}{{ if gt $index 0 }}, {{ end }}{{ . }}{{ end }}
+ {{ range $index, $director := .Params.directors }}
+ {{- if gt $index 0 }}, {{ end -}}
+ {{ with $.Site.GetPage (printf "/directors/%s" $director) -}}
+ {{ $director }}
+ {{- end -}}
+ {{ end -}}
{{ end }}
```
@@ -292,7 +312,9 @@ The following example displays all terms in a site's tags taxonomy:
```
```
@@ -305,18 +327,20 @@ This example will list all taxonomies and their terms, as well as all the conten
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies }}
- - {{ $taxonomyname }}
-
- {{ range $key, $value := $taxonomy }}
- - {{ $key }}
-
- {{ end }}
-
-
+ {{ with $.Site.GetPage (printf "/%s" $taxonomyname) }}
+ - {{ $taxonomyname }}
+
+ {{ range $key, $value := $taxonomy }}
+ - {{ $key }}
+
+ {{ end }}
+
+
+ {{ end }}
{{ end }}