terms.html 765 B

12345678910111213141516171819202122232425262728
  1. <section class="container taxonomy">
  2. <h1 class="title">
  3. <a class="title-link" href="{{ .Permalink | safeURL }}">
  4. {{- if eq .Kind "term" -}}
  5. {{- i18n .Data.Singular | title -}}
  6. {{- print ": " -}}
  7. {{- end -}}
  8. {{- i18n (lower .Title) | default .Title | title -}}
  9. </a>
  10. </h1>
  11. {{ .Content }}
  12. <ul>
  13. {{ $type := .Type }}
  14. {{ range $key, $value := .Data.Terms.Alphabetical }}
  15. {{ $name := .Name }}
  16. {{ $count := .Count }}
  17. {{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
  18. <li>
  19. <span class="taxonomy-element">
  20. <a href="{{ .Permalink }}">{{ .Name }}</a>
  21. <sup>{{ $count }}</sup>
  22. </span>
  23. </li>
  24. {{ end }}
  25. {{ end }}
  26. </ul>
  27. </section>