🐛 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
+6
View File
@@ -0,0 +1,6 @@
{{- /* Escape url special characters to query format, e.g: `#` -> `%23` */ -}}
{{- /* https://github.com/hugo-fixit/FixIt/issues/245 */ -}}
{{- $content := . -}}
{{- $content = replace $content "#" "%23" -}}
{{- return $content -}}