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