Skip to content

Commit c5b103c

Browse files
authored
fix: fix unicode broken tags (poole#261)
1 parent 614a622 commit c5b103c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

layouts/_default/single.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,14 @@
1515
</p>
1616
<ul class="tags">
1717
{{ range (.GetTerms "tags") }}
18-
<li><a href="{{ .Permalink }}">{{ .LinkTitle | humanize }}</a></li>
18+
<li><a href="{{ .Permalink }}">
19+
{{if (eq $.Site.Language.Lang "en")}}
20+
{{ .LinkTitle | humanize }}
21+
{{else}}
22+
{{ .LinkTitle }}
23+
{{end}}
24+
</a>
25+
</li>
1926
{{ end }}
2027
</ul>
2128
{{partial "toc.html" .}}

0 commit comments

Comments
 (0)