From a3059fe4f77d5bfdd12fe12977c741f863e4bd9a Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Thu, 19 Mar 2020 22:00:45 +0100 Subject: #140, Use new GetTerms function to fix tag titles --- layouts/partials/docs/post-meta.html | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'layouts') 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 @@
{{ .Format $dateFormat }}
{{ end }} -{{ range $term, $_ := .Site.Taxonomies }} - {{ with $list := $.Param $term }} +{{ range $taxonomy, $_ := .Site.Taxonomies }} + {{ with $terms := $.GetTerms $taxonomy }}
- {{ range $n, $single := $list }}{{ if $n }}, {{ end }} - {{- with $.Site.GetPage (printf "/%s/%s" $term $single | urlize) }} - {{ .Title }} - {{- end }} + {{ range $n, $term := $terms }}{{ if $n }}, {{ end }} + {{ $term.Title }} {{- end }}
{{ end }} -- cgit v1.2.3