mirror of
https://github.com/yihui/hugo-xmin.git
synced 2024-12-25 22:53:32 +02:00
Add terms template back
This commit is contained in:
parent
3e7ccabe6d
commit
3328d5c368
1 changed files with 16 additions and 0 deletions
16
layouts/_default/terms.html
Normal file
16
layouts/_default/terms.html
Normal file
|
@ -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 a new issue