Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorW.T. Chang <wtchangdm@users.noreply.github.com>2020-05-18 12:30:37 +0300
committerGitHub <noreply@github.com>2020-05-18 12:30:37 +0300
commite5ae1d696ba1a7327431e3c97b3cc30dbb6a9d94 (patch)
tree24441bc9f8391f1ce8878289da646f9c4e7ed2c3 /layouts/_default/summary.html
parent9c1244490f0f5596db9b6df933041af9c727dc5b (diff)
fix(path): broken tag/category link when containing a dot (#368)
Diffstat (limited to 'layouts/_default/summary.html')
-rw-r--r--layouts/_default/summary.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
index fa990e1..da1e819 100644
--- a/layouts/_default/summary.html
+++ b/layouts/_default/summary.html
@@ -31,7 +31,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;" -}}
@@ -58,10 +58,10 @@
<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 -}}
</div>
{{- end -}}
</div>
-</article>
+</article> \ No newline at end of file