commit 4888812fd8e4589f14f629f40136bae507471089
parent 85309648e9fd427561ceca4d14ce5d17f5b2e393
Author: Yihui Xie <xie@yihui.name>
Date: Wed, 26 Jul 2017 12:44:40 -0500
fix #10: urlize the terms
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
@@ -5,7 +5,7 @@
<ul class="terms">
{{ range $key, $value := .Data.Terms }}
<li>
- <a href="{{ (print "/" $.Data.Plural "/" $key) | relURL }}">
+ <a href="{{ (print "/" $.Data.Plural "/" $key | urlize) | relURL }}">
{{ $key }}
</a>
({{ len $value }})