commit 4a2c90df87ed0da0bb273237926a6ee96d469adc
parent 0e36bb8acdeb1b8ddcc0d8470998c610ca098d17
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Sat, 14 Sep 2019 10:06:53 -0400
Simplify term lists
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
@@ -5,8 +5,8 @@
{{ .Content }}
<ul class="terms">
- {{ range $key, $value := .Data.Terms }}
- <li><a href="{{ print "/" $.Data.Plural "/" $key | urlize | relLangURL }}">{{ partial "i18n_fallback" $key }}</a> ({{ len $value }})</li>
+ {{ range .Data.Terms }}
+ <li><a href="{{ .Page.RelPermalink }}">{{ partial "i18n_fallback" .Page.Title }}</a> ({{ .Count }})</li>
{{ end }}
</ul>