Skip to content
Permalink
Browse files
fix(uglyurls): fix the path of tags in the case of uglyURLs = true. (#…
  • Loading branch information
bobuhiro11 committed Jan 19, 2021
1 parent fcf2021 commit 5646979
Showing 1 changed file with 1 addition and 1 deletion.
@@ -45,7 +45,7 @@ <h1 class="post-title">{{ .Title }}</h1>
{{ 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 -}}

0 comments on commit 5646979

Please sign in to comment.