fix(path): broken tag/category link when containing a dot (#368)

This commit is contained in:
W.T. Chang
2020-05-18 17:30:37 +08:00
committed by GitHub
parent 9c1244490f
commit e5ae1d696b
4 changed files with 8 additions and 5 deletions

View File

@@ -0,0 +1,3 @@
{{- /* https://discourse.gohugo.io/t/how-decode-urls-in-hugo/7549/4 */ -}}
{{- $URL := . | urlize | urls.Parse -}}
{{- return $URL.Path -}}