Fix taxonomy template spacing, let taxonomies be translatable

This commit is contained in:
Alex Shpak
2025-09-27 23:24:38 +02:00
parent cf39c1060a
commit f207499922
+2 -2
View File
@@ -3,10 +3,10 @@
{{ range $term, $_ := .Site.Taxonomies }} {{ range $term, $_ := .Site.Taxonomies }}
{{ with $.Site.GetPage (printf "/%s" $term | urlize) }} {{ with $.Site.GetPage (printf "/%s" $term | urlize) }}
<li class="book-section-flat"> <li class="book-section-flat">
<span>{{ .Title | title }}</span> <a>{{ T .Title | default .Title }}</a>
<ul> <ul>
{{ range .Pages }} {{ range .Pages }}
<li class="flex justify-between"> <li class="flex align-center">
<a href="{{ .RelPermalink }}">{{ .Title }}</a> <a href="{{ .RelPermalink }}">{{ .Title }}</a>
<span>{{ len .Pages }}</span> <span>{{ len .Pages }}</span>
</li> </li>