diff options
Diffstat (limited to 'themes/hugo-coder/layouts/partials/terms.html')
| m--------- | themes/hugo-coder | 0 | ||||
| -rw-r--r-- | themes/hugo-coder/layouts/partials/terms.html | 28 |
2 files changed, 28 insertions, 0 deletions
diff --git a/themes/hugo-coder b/themes/hugo-coder deleted file mode 160000 | |||
| Subproject 55b2a150f990bc56364dba347bc9acc6aab07be | |||
diff --git a/themes/hugo-coder/layouts/partials/terms.html b/themes/hugo-coder/layouts/partials/terms.html new file mode 100644 index 0000000..7d51e57 --- /dev/null +++ b/themes/hugo-coder/layouts/partials/terms.html | |||
| @@ -0,0 +1,28 @@ | |||
| 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 | |||
| 9 | {{- i18n (lower .Title) | default .Title | title -}} | ||
| 10 | </a> | ||
| 11 | </h1> | ||
| 12 | {{ .Content }} | ||
| 13 | <ul> | ||
| 14 | {{ $type := .Type }} | ||
| 15 | {{ range $key, $value := .Data.Terms.Alphabetical }} | ||
| 16 | {{ $name := .Name }} | ||
| 17 | {{ $count := .Count }} | ||
| 18 | {{ with $.Site.GetPage (printf "/%s/%s" $type $name) }} | ||
| 19 | <li> | ||
| 20 | <span class="taxonomy-element"> | ||
| 21 | <a href="{{ .Permalink }}">{{ .Name }}</a> | ||
| 22 | <sup>{{ $count }}</sup> | ||
| 23 | </span> | ||
| 24 | </li> | ||
| 25 | {{ end }} | ||
| 26 | {{ end }} | ||
| 27 | </ul> | ||
| 28 | </section> | ||
