1

Utilisation du nom réel de la taxonomie quand il est disponible

This commit is contained in:
2025-11-07 16:12:12 +01:00
parent dca38141bf
commit 33de4283ed

View File

@@ -18,7 +18,8 @@
{{- range $taxonomy, $_ := $ctx.Site.Taxonomies -}} {{- range $taxonomy, $_ := $ctx.Site.Taxonomies -}}
{{- with $ctx.Page.GetTerms $taxonomy }} {{- with $ctx.Page.GetTerms $taxonomy }}
<section> <section>
<h2>{{ humanize $taxonomy }}</h2> {{- $taxonomyPage := $ctx.Site.GetPage "taxonomy" $taxonomy -}}
<h2>{{ with $taxonomyPage }}{{ .Title }}{{ else }}{{ humanize $taxonomy }}{{ end }}</h2>
{{- partial "keywords.html" . }} {{- partial "keywords.html" . }}
</section> </section>
{{- end }} {{- end }}