aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2020-03-19 22:00:45 +0100
committerAlex Shpak <alex-shpak@users.noreply.github.com>2020-03-19 22:00:45 +0100
commita3059fe4f77d5bfdd12fe12977c741f863e4bd9a (patch)
tree1163953f993b08c9f0fbbc0ffc9bad9bdebc9b36 /layouts/partials
parent0d1ba29999a500166fa77187cf5c664942d09e57 (diff)
#140, Use new GetTerms function to fix tag titles
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/docs/post-meta.html10
1 files changed, 4 insertions, 6 deletions
diff --git a/layouts/partials/docs/post-meta.html b/layouts/partials/docs/post-meta.html
index 0b35f1f..70adb0b 100644
--- a/layouts/partials/docs/post-meta.html
+++ b/layouts/partials/docs/post-meta.html
@@ -3,13 +3,11 @@
<h5>{{ .Format $dateFormat }}</h5>
{{ end }}
-{{ range $term, $_ := .Site.Taxonomies }}
- {{ with $list := $.Param $term }}
+{{ range $taxonomy, $_ := .Site.Taxonomies }}
+ {{ with $terms := $.GetTerms $taxonomy }}
<div>
- {{ range $n, $single := $list }}{{ if $n }}, {{ end }}
- {{- with $.Site.GetPage (printf "/%s/%s" $term $single | urlize) }}
- <a href="{{ .RelPermalink }}">{{ .Title }}</a>
- {{- end }}
+ {{ range $n, $term := $terms }}{{ if $n }}, {{ end }}
+ <a href="{{ $term.RelPermalink }}">{{ $term.Title }}</a>
{{- end }}
</div>
{{ end }}