Fixed terms layout: support i18n url

This commit is contained in:
Memory Clutter 2022-11-05 17:45:26 +03:00
parent 4b2c4a2677
commit c39379d105

View file

@ -5,7 +5,7 @@
{{ $data := .Data }} {{ $data := .Data }}
{{ range $key, $value := .Data.Terms.ByCount }} {{ range $key, $value := .Data.Terms.ByCount }}
<div class="mb-5 flex justify-between"> <div class="mb-5 flex justify-between">
<a class="self-start" href="/{{ $data.Plural }}/{{ $value.Name }}"> <a class="self-start" href="{{ $data.Plural | absLangURL }}/{{ $value.Name }}">
{{ $value.Name }} {{ $value.Name }}
</a> </a>
<span class="">{{ $value.Count }}</span> <span class="">{{ $value.Count }}</span>