diff options
Diffstat (limited to 'layouts/_default/terms.html')
| -rw-r--r-- | layouts/_default/terms.html | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 6f47851..adbd2f5 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -1,21 +1,22 @@ {{ define "main" }} + {{- if .Title }} <header class="page-header"> <h1>{{ .Title }}</h1> </header> -{{ end }} +{{- end }} <ul class="terms-tags"> - {{ $type := .Type }} - {{ range $key, $value := .Data.Terms.Alphabetical }} - {{ $name := .Name }} - {{ $count := .Count }} - {{ with $.Site.GetPage (printf "/%s/%s" $type $name) }} + {{- $type := .Type }} + {{- range $key, $value := .Data.Terms.Alphabetical }} + {{- $name := .Name }} + {{- $count := .Count }} + {{- with $.Site.GetPage (printf "/%s/%s" $type $name) }} <li> <a href="{{ .Permalink }}">{{ .Name }} <sup><strong><sup>{{ $count }}</sup></strong></sup> </a> </li> - {{ end }} - {{ end }} + {{- end }} + {{- end }} </ul> {{ end }}{{/* end main */}}
\ No newline at end of file |
