site

personal website, served at mordaunt.dev/site
Log | Files | Refs

terms.html (807B)


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