From 9888c52dbfa8dbd1b7144f524d8d5498d41bf3e1 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Fri, 17 Jan 2020 21:31:26 +0100 Subject: #132, add urlize to taxonomy templates --- layouts/partials/docs/post-meta.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'layouts/partials/docs/post-meta.html') diff --git a/layouts/partials/docs/post-meta.html b/layouts/partials/docs/post-meta.html index a129944..41221c7 100644 --- a/layouts/partials/docs/post-meta.html +++ b/layouts/partials/docs/post-meta.html @@ -7,12 +7,13 @@ {{ range $term, $_ := .Site.Taxonomies }} {{ with $list := index $.Params $term }} +
{{ range $n, $single := $list }}{{ if $n }}, {{ end }} - {{ with $.Site.GetPage (printf "/%s/%s" $term $single) }} - {{ $single }} + {{ with $.Site.GetPage (printf "/%s/%s" $term $single | urlize) }} + {{ .Title }} {{- end }} {{- end }} -
+
{{ end }} {{ end }} -- cgit v1.2.3