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

@@ -51,7 +51,7 @@
<i class="fas fa-tags fa-fw"></i>&nbsp;
{{- range $index, $value := . -}}
{{- if gt $index 0 }},&nbsp;{{ end -}}
{{- $tag := $value | anchorize | printf "/tags/%v" | $.Site.GetPage -}}
{{- $tag := partialCached "function/path.html" $value $value | printf "/tags/%v" | $.Site.GetPage -}}
<a href="{{ $tag.RelPermalink }}">{{ $tag.Title }}</a>
{{- end -}}
{{- end -}}