🐛 Fix: escape CJK character in tag and category (#245, #246)

This commit is contained in:
Cell
2022-11-19 21:58:27 +08:00
parent 203de93723
commit d31215044d
2 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
{{- /* https://discourse.gohugo.io/t/how-decode-urls-in-hugo/7549/4 */ -}}
{{- /* https://github.com/hugo-fixit/FixIt/issues/245 */ -}}
{{- $URL := . | urlize | urlquery | urls.Parse -}}
{{- $URL := partial "function/urlquery.html" . -}}
{{- $URL = $URL | urlize | urls.Parse -}}
{{- return $URL.Path -}}