diff options
-rw-r--r-- | layouts/_default/terms.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html new file mode 100644 index 0000000..9779713 --- /dev/null +++ b/layouts/_default/terms.html @@ -0,0 +1,24 @@ +{{ define "main" }} + <article class="post entry"> + <div class="entry-header"> + <h1 class="entry-title">{{ .Title }}</h1> + </div> + <div class="entry-content"> + <ul> + {{ $type := .Type }} + {{ range $key, $value := .Data.Terms.ByCount }} + {{ $name := .Name }} + {{ $count := .Count }} + {{ with $.Site.GetPage (printf "/%s/%s" $type $name) }} + <li> + {{ printf "(%d)" $count }} + <a href="{{ .Permalink }}"> + {{ $name }} + </a> + </li> + {{ end }} + {{ end }} + </ul> + </div> + </article> +{{ end }}
\ No newline at end of file |