blog

Log | Files | Refs

taxonomy.html (704B)


      1 {{- define "main" }}
      2 
      3 {{- if .Title }}
      4 <header class="page-header">
      5     <h1>{{ .Title }}</h1>
      6     {{- if .Description }}
      7     <div class="post-description">
      8         {{ .Description }}
      9     </div>
     10     {{- end }}
     11 </header>
     12 {{- end }}
     13 
     14 <ul class="terms-tags">
     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                 <a href="{{ .Permalink }}">{{ .LinkTitle }} <sup><strong><sup>{{ $count }}</sup></strong></sup> </a>
     22             </li>
     23         {{- end }}
     24     {{- end }}
     25 </ul>
     26 
     27 {{- end }}{{/* end main */ -}}