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

@@ -39,7 +39,7 @@
{{- $categories := slice -}}
{{- range .Params.categories -}}
{{- $category := . | anchorize | printf "/categories/%v" | $.Site.GetPage -}}
{{- $category := partialCached "function/path.html" . . | printf "/categories/%v" | $.Site.GetPage -}}
{{- $categories = $categories | append (printf `<a href="%v"><i class="far fa-folder fa-fw"></i>%v</a>` $category.RelPermalink $category.Title) -}}
{{- end -}}
{{- with delimit $categories "&nbsp;" -}}