1

Nettoyage et tri des mots-clé

This commit is contained in:
2025-11-06 21:30:00 +01:00
parent 5620633a42
commit d02c785633
2 changed files with 1 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
{{- $items := . -}}
{{- if gt (len $items) 0 -}}
<ul class="keywords">
{{- range $items }}
{{- range (sort $items "Title") }}
{{- $type := printf "%T" . -}}
{{- if or (strings.HasPrefix $type "*hugolib.") (strings.HasPrefix $type "page.") }}
<li><a href="{{ .RelPermalink }}">{{ with .LinkTitle }}{{ . }}{{ else }}{{ .Title }}{{ end }}</a></li>