diff options
Diffstat (limited to 'layouts/taxonomy.html')
| -rw-r--r-- | layouts/taxonomy.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/layouts/taxonomy.html b/layouts/taxonomy.html new file mode 100644 index 0000000..ef791e8 --- /dev/null +++ b/layouts/taxonomy.html @@ -0,0 +1,19 @@ +{{ define "main" }} + {{- $taxonomy := .Data -}} + <h1 class="title">{{ .Title }}</h1> + {{ .Content }} + <table> + <thead><tr> + <th>{{ $taxonomy.Singular | humanize }}</th> + <th>Pages</th> + </thead> + <tbody> + {{- range $taxonomy.Terms.ByCount }} + <tr> + <td><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a></td> + <td>{{ .Count }}</td> + </tr> + {{- end }} + </tbody> + </table> +{{ end }} |