mirror of
https://github.com/panr/hugo-theme-terminal.git
synced 2024-12-05 13:59:06 +03:00
18 lines
457 B
HTML
18 lines
457 B
HTML
|
{{ define "main" }}
|
||
|
<div class="terms">
|
||
|
<h1>{{ .Title }}</h1>
|
||
|
<ul>
|
||
|
{{ $type := .Type }}
|
||
|
{{ range $key, $value := .Data.Terms.Alphabetical }}
|
||
|
{{ $name := .Name }}
|
||
|
{{ $count := .Count }}
|
||
|
{{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
|
||
|
<li>
|
||
|
<a class="terms-title" href="{{ .Permalink }}">{{ .Name }} ({{ $count }})</a>
|
||
|
</li>
|
||
|
{{ end }}
|
||
|
{{ end }}
|
||
|
</ul>
|
||
|
</div>
|
||
|
{{ end }}
|