1

Nouveau thème pour 2026

This commit is contained in:
2026-02-21 01:50:39 +01:00
parent 27dd5f86e6
commit a7f539ceb4
67 changed files with 6137 additions and 21 deletions

View File

@@ -0,0 +1,25 @@
{{- $items := . -}}
{{- if gt (len $items) 0 -}}
<ul>
{{- $type := printf "%T" $items -}}
{{- $isTextList := hasPrefix $type "[]string" -}}
{{- if $isTextList -}}
{{- range sort $items -}}
<li>{{ . }}</li>
{{- end -}}
{{- else -}}
{{- range sort $items "Title" -}}
{{- $itemType := printf "%T" . -}}
{{- $isPage := or (strings.HasPrefix $itemType "*hugolib.") (strings.HasPrefix $itemType "page.") -}}
{{- if $isPage -}}
<li>
<a href="{{ .RelPermalink }}">{{ with .LinkTitle }}{{ . }}{{ else }}{{ .Title }}{{ end }}</a>
{{ with .Pages }}<sub>{{ len . }}</sub>{{ else }}<sub>0</sub>{{ end }}
</li>
{{- else -}}
<li>{{ . }}</li>
{{- end -}}
{{- end -}}
{{- end -}}
</ul>
{{- end -}}