ContainerImage.Pinniped/site/themes/pinniped/layouts/_default/terms.html
2023-08-15 14:18:48 -04:00

29 lines
727 B
HTML

{{ define "main" }}
<main>
<div class="hero subpage">
<div class="wrapper">
{{ if or .Title .Content }}
<div>
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
{{ with .Content }}<div>{{ . }}</div>{{ end }}
</div>
{{ end }}
</div>
</div>
<div class="wrapper terms">
<p>Blog posts have been tagged with the following set of tags (including authors):</p>
<ul>
{{range $name, $taxonomy := .Site.Taxonomies.tags}} {{ $cnt := .Count }}
{{ with $.Site.GetPage (printf "/tags/%s" $name) }}
<li>
<a href={{ .RelPermalink }} title="All pages with tag <i>{{$name}}</i>">{{ .Title }}</a>
<sup>{{$cnt}}</sup>
</li>
{{end}}
{{end}}
</ul>
</div>
</main>
{{ end }}