Utilisation du nom réel de la taxonomie quand il est disponible
This commit is contained in:
@@ -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 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user