aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorCreaink <455372644@qq.com>2019-03-31 15:21:17 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2019-03-31 15:21:17 +0800
commitf14d7b5f734fb8ffea6127c210d66edc72bddcc7 (patch)
treec504a6520ecf2904da044bba8805c263a8ed1b79 /layouts
parent4fe268549ac24eeac92143da27a05ecd0eb29ad0 (diff)
fix(uglyurls): uglyurls with tag and categories terms (#129)
Closes #89
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/terms.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
index abbc170..e76cde8 100644
--- a/layouts/_default/terms.html
+++ b/layouts/_default/terms.html
@@ -15,7 +15,7 @@
</div>
<div class="terms-tags">
{{ range $key, $value := $terms -}}
- <a class="terms-link" href="{{ $name | relLangURL }}/{{ $value.Term | urlize }}/">
+ <a class="terms-link" href="{{ $name | relLangURL }}/{{ $value.Term | urlize }}{{ if $.Site.Params.uglyURLs }}.html{{else}}/{{ end }}">
{{ $value.Term }}
<span class="terms-count">{{ len $value.Pages }}</span>
</a>
@@ -33,7 +33,7 @@
</div>
<div class="terms-tags">
{{- range $key, $value := $terms }}
- <a class="terms-link" href="{{ $name | relLangURL }}/{{ $value.Term | urlize }}/">
+ <a class="terms-link" href="{{ $name | relLangURL }}/{{ $value.Term | urlize }}{{ if $.Site.Params.uglyURLs }}.html{{else}}/{{ end }}">
{{ $value.Term }}
<span class="terms-count">{{ len $value.Pages }}</span>
</a>
@@ -41,4 +41,4 @@
</div>
</div>
{{- end }}
-{{- end }} \ No newline at end of file
+{{- end }}