projects
/
brevno-suite
/
themes
/
xmin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8530964
)
fix #10: urlize the terms
author
Yihui Xie
<xie@yihui.name>
Wed, 26 Jul 2017 17:44:40 +0000
(12:44 -0500)
committer
Yihui Xie
<xie@yihui.name>
Wed, 26 Jul 2017 17:48:46 +0000
(12:48 -0500)
layouts/_default/terms.html
patch
|
blob
|
history
diff --git
a/layouts/_default/terms.html
b/layouts/_default/terms.html
index b21e866dc70ac9eb672ea1294ea2f12b18472683..09b3785be270273fbb1abbed7cf622567520b0ea 100644
(file)
--- 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 }})