From a90171fdb15bfaae3d2cdf1ead707e57219ec116 Mon Sep 17 00:00:00 2001 From: Luke Rawlins Date: Sat, 3 Oct 2020 18:43:48 -0400 Subject: Individual taxonomies now display properly as links and the urls are routed correctly to the proper taxonomy term. Fixes #236 --- layouts/blog/single.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'layouts') diff --git a/layouts/blog/single.html b/layouts/blog/single.html index 3aecef2..877be4b 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -43,11 +43,13 @@ {{ end }} {{ range $taxonomy_term, $taxonomy := .Params }} - {{ with $.Site.GetPage (printf "/%s" $taxonomy_term) }} -

+ {{ with $.Site.GetPage $taxonomy_term }} + {{ $len := (len $taxonomy) }} +

{{ $taxonomy_term | title }}: - {{ range $key, $value := $taxonomy }} - {{ $value }} + {{ range $key, $value := $taxonomy }} + + {{ $value }}{{ if ne (add $key 1) $len }},{{ end }} {{ end }}

{{ end }} -- cgit v1.2.3