fix(uglyurls): fix the path of tags in the case of uglyURLs = true. (#310)

This commit is contained in:
Nobuhiro MIKI 2021-01-19 22:36:26 +09:00 committed by GitHub
parent fcf2021958
commit 564697987d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 -}}