mirror of
https://github.com/yihui/hugo-xmin.git
synced 2024-11-22 00:19:19 +02:00
Add terms template back
This commit is contained in:
parent
3e7ccabe6d
commit
3328d5c368
|
@ -0,0 +1,16 @@
|
|||
{{ partial "header.html" . }}
|
||||
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
<ul class="terms">
|
||||
{{ range $key, $value := .Data.Terms }}
|
||||
<li>
|
||||
<a href="{{ (print "/" $.Data.Plural "/" $key | urlize) | relURL }}">
|
||||
{{ $key }}
|
||||
</a>
|
||||
({{ len $value }})
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
{{ partial "footer.html" . }}
|
Loading…
Reference in New Issue