aboutsummaryrefslogtreecommitdiff
path: root/layouts/post/single.html
diff options
context:
space:
mode:
authorNobuhiro MIKI <nob@bobuhiro11.net>2021-01-19 22:36:26 +0900
committerGitHub <noreply@github.com>2021-01-19 21:36:26 +0800
commit564697987de962672112b910422682eb6f9c26ba (patch)
tree04339d949c0bc766f4f375137ff0faa54c6bb46d /layouts/post/single.html
parentfcf20219586e4c66d703e249aac5bb6a42a4320d (diff)
fix(uglyurls): fix the path of tags in the case of uglyURLs = true. (#310)HEADmaster
Diffstat (limited to 'layouts/post/single.html')
-rw-r--r--layouts/post/single.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/post/single.html b/layouts/post/single.html
index f19cb9b..d138eef 100644
--- a/layouts/post/single.html
+++ b/layouts/post/single.html
@@ -45,7 +45,7 @@
{{ with .Params.tags -}}
<div class="post-tags">
{{ range . -}}
- <a href="{{ "tags" | relLangURL }}/{{ . | urlize }}/">{{ . }}</a>
+ <a href="{{ "tags" | relLangURL }}/{{ . | urlize }}{{ if $.Site.Params.uglyURLs }}.html{{ else }}/{{ end }}">{{ . }}</a>
{{ end -}}
</div>
{{- end -}}