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,33 @@
{{- $current := . -}}
{{- if reflect.IsMap . -}}
{{- with index . "Page" -}}
{{- $current = . -}}
{{- end -}}
{{- end -}}
{{- with $current.Params.dossier -}}
{{- $dossierID := index . 0 -}}
{{- if $dossierID -}}
{{- $allPages := site.RegularPages -}}
{{- $filtered := where $allPages "Params.dossier" "intersect" (slice $dossierID) -}}
{{- $sorted := sort $filtered "RelPermalink" "asc" -}}
{{- $sorted = sort $sorted "Date" "asc" -}}
{{- $sorted = sort $sorted "Weight" "asc" -}}
{{- if gt (len $sorted) 1 -}}
<nav aria-label="Sommaire du dossier">
<p><strong>{{ $dossierID }}</strong></p>
<ol>
{{- range $sorted -}}
<li>
{{- if eq .Permalink $current.Permalink -}}
<strong>{{ .Title }}</strong>
{{- else -}}
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{- end -}}
</li>
{{- end -}}
</ol>
</nav>
{{- end -}}
{{- end -}}
{{- end -}}