hugo-book-theme/layouts/taxonomy/list.html

14 lines
352 B
HTML
Raw Permalink Normal View History

2019-12-19 17:22:12 +01:00
{{ define "main" }}
<article class="markdown">
<h1>{{ .Title | title }}</h1>
{{ $taxonomies := index .Site.Taxonomies .Page.Type }}
{{ range $taxonomies }}
<div><a href="{{ .Page.Permalink }}">{{ .Page.Title }} <sup>{{ .Count }}</sup></a></div>
{{ end }}
</article>
{{ end }}
{{ define "toc" }}
{{ partial "docs/taxonomy" . }}
{{ end }}