diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-01-21 17:34:37 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-01-21 17:34:37 -0500 |
| commit | 8f0a341644fb0d9575b5429ca6193609a4d12d02 (patch) | |
| tree | e968bb900ff92ebdeda8a7fa98287bd627c08fc9 /layouts/taxonomy.html | |
| parent | 7e971e862a43361ec77c3b2c7a4345dd9e771784 (diff) | |
| download | samanthony.xyz-8f0a341644fb0d9575b5429ca6193609a4d12d02.zip | |
tags
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 }} |