Individual taxonomies now display properly as links and the urls are routed correctly to the proper taxonomy term.

Fixes #236
This commit is contained in:
Luke Rawlins 2020-10-03 18:43:48 -04:00
parent 5952da59b1
commit a90171fdb1

View file

@ -43,11 +43,13 @@
</div>
{{ end }}
{{ range $taxonomy_term, $taxonomy := .Params }}
{{ with $.Site.GetPage (printf "/%s" $taxonomy_term) }}
<p>
{{ with $.Site.GetPage $taxonomy_term }}
{{ $len := (len $taxonomy) }}
<p>
{{ $taxonomy_term | title }}:
<a href="{{ .Permalink }}">{{ range $key, $value := $taxonomy }}
{{ $value }}</a>
{{ range $key, $value := $taxonomy }}
<a href="{{ (printf "/%s/" $taxonomy_term) | relLangURL }}{{ . | urlize }}">
{{ $value }}</a>{{ if ne (add $key 1) $len }},{{ end }}
{{ end }}
</p>
{{ end }}