Nettoyage et tri des mots-clé
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user