ContainerImage.Pinniped/site/themes/pinniped/layouts/_default/terms.html

29 lines
727 B
HTML
Raw Permalink Normal View History

2023-08-15 18:18:48 +00:00
{{ 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 }}